Repository is combine from the two repositories server and client for Docker.
Repository will be separated into server and client directory for NestJS backend and Angular frontend resepctively.
- Server repository
- Client repository
- Docker support
- Hook up Server and Client
The Project's backend written using NestJS
- NSwag: Nswag allows us to generate API Calls to our Backend on our Frontend in forms of Functions. The abstraction of HttpClientModule takes place in the generated file.
- Steps:
cd ./server&npm ito install all dependencies for Server side.- Have an instance of MongoDB running (
mongod). npm run start:devto start the server with Nodemon.
This repository Project's frontend written using Angular CLI 15.2.7
- Run:
cd ./client&npm ito install all the dependencies then just start the application withng serve. - Note: Backend have CORS setup with CORS ORIGIN.
Docker is supported.
- Branch:
docker,master - Steps: Just clone the repository, check out
dockerormasterbranch then fromrootdirectory, edit client/environments & docker-compose.yaml and set value ENV you want, rundocker compose up -dand Docker will take over. When prebuild, rundocker compose buildfirst, after rundocker compose up -d. - Note: Angular application will be served by NGINX on
localhost; Nest application will be running onlocalhost:8080. Again, it's worthwhile to explore the Dockerfile in bothclientandserverdirectory;docker-compose.yamlto get the gist of how Docker and Docker Compose work.