This template is based on the Create React App and the NestJS project builder.
-
Server:
- NestJS
- Mongoose
- Swagger
-
Client:
- React
- Styled components
- SCSS
- Axios
-
General:
- Typescript
- Prettier
- Eslint
- Jest
yarn start
create and start production buildyarn build
create production build without startingyarn start:dev
start developing sessionyarn test
test client and server
Full list of commands you can find at package.json
Template supports developing and production env files. Will be using .env.development
file for developing scripts and .env.production
for build purposes.
List of available variables, default values and their names:
- db host:
mongodb://localhost
; MONGO_HOST - db port:
27017
; MONGO_PORT - db name:
test
; MONGO_DB - server port:
5000
; SERVER_PORT - client port:
3000
; PORT
And all the CRA environment variables, see: https://create-react-app.dev/docs/advanced-configuration/
The server will serve client at all paths except /api which is a global prefix. In development mode, client will make a proxy to server at /api. Client build stored in /build folder. Server build stored in /dist folder.