Skip to content

Latest commit

 

History

History
79 lines (45 loc) · 1.58 KB

README.md

File metadata and controls

79 lines (45 loc) · 1.58 KB

file-boxes

Local development

Database

The database for local development is hosted on Atlas. Feel free to use your own credential for it in .env.development file inside of server folder.

Cloud storage

The clould storage for local development is hosted on Cloudinary. Feel free to use your own credential for it in .env.development file inside of server folder.

Backend project

  1. cd into server folder

  2. Install backend libs

npm run install
  1. Star the backend app npm run start:dev

  2. There is backend API docs available on local api docs. Feel free to explore it.

Frontend projcet

  1. cd into client folder

  2. Install libs

npm run install
  1. Star the frontend app npm run start

Deployment

Projcet

The backend project is deployed to Heroku via Heroku CLI which is a manual way due to some Github issues of Heroku.

Here is the project address

You can check the backend docs here:

The React app is served as a static resource of Nestjs.

How to dploy

  1. cd into server folder

  2. Build static frontend

npm run build-client
  1. The Heroku app has been created and the production environment variables have been configured.

  2. Use Heroku CLI to deploy to cloud. Heroku CLI

Unit tests

Backend project

  1. cd into server folder

  2. Run the tests

npm run test
  1. Need to write more unit tests and make sure the test coverage is above 95%.