switch to pnpm workspaces
This commit is contained in:
13
README.md
13
README.md
@@ -29,7 +29,7 @@ Built with Next.js 13, Tailwind CSS + daisyUI, react-chessboard, chess.js, Expre
|
||||
|
||||
> Node.js 18 or newer is recommended.
|
||||
|
||||
This project is structured as a monorepo using npm workspaces, separated into three packages:
|
||||
This project is structured as a monorepo using **pnpm** workspaces, separated into three packages:
|
||||
|
||||
- `client` - Next.js application for the front-end, deployed to [ches.su](https://ches.su) via Vercel.
|
||||
- `server` - Node/Express.js application for the back-end, deployed to [server.ches.su](https://server.ches.su) via Railway.
|
||||
@@ -37,17 +37,18 @@ This project is structured as a monorepo using npm workspaces, separated into th
|
||||
|
||||
### Getting started
|
||||
|
||||
1. Install the necessary dependencies by running `npm install` in the root directory of the project.
|
||||
2. In the `server` directory, create a `.env` file for your PostgreSQL database. You can try [ElephantSQL](https://www.elephantsql.com/) or [Aiven](https://aiven.io/postgresql) for a free hosted database.
|
||||
1. Install [pnpm](https://pnpm.io/installation).
|
||||
2. Install the necessary dependencies by running `pnpm install` in the root directory of the project.
|
||||
3. In the `server` directory, create a `.env` file for your PostgreSQL database. You can try [ElephantSQL](https://www.elephantsql.com/) or [Aiven](https://aiven.io/postgresql) for a free hosted database.
|
||||
```env
|
||||
PGHOST=db.example.com
|
||||
PGUSER=exampleuser
|
||||
PGPASSWORD=examplepassword
|
||||
PGDATABASE=chessu
|
||||
```
|
||||
3. Run the development servers with `npm run dev`.
|
||||
- To run the frontend and backend servers separately, use `npm run dev -w client` and `npm run dev -w server`, respectively.
|
||||
4. You can now access the frontend at http://localhost:3000 and the backend at http://localhost:3001.
|
||||
4. Run the development servers with `pnpm dev`.
|
||||
- To run the frontend and backend servers separately, use `pnpm dev:client` and `pnpm dev:server`, respectively.
|
||||
5. You can now access the frontend at http://localhost:3000 and the backend at http://localhost:3001.
|
||||
|
||||
## Contributing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user