```sh # install all dependencies, including eslint and prettier for development @@ -27,8 +29,9 @@ npm install # concurrently run frontend and backend development servers npm run dev # -w client/server to run only one +``` - +```sh # for separate production deployments npm install -w client npm install -w server @@ -40,9 +43,9 @@ npm start -w client npm start -w server ``` -For separate deployments, you may exclude the `client` or `server` directory. However, you should include the `types` folder as it contains shared type definitions that are required by both packages. +
You may create a `.env` file in each package directory to set their environment variables. @@ -65,3 +68,13 @@ PGUSER=exampleuser PGPASSWORD=examplepassword PGDATABASE=chessu ``` + +