Repository will be separated into server
and client
directory for NestJS backend and Angular frontend resepctively.
This repository houses the Project's backend written using NestJS
cd ./server
& npm i
to install all dependencies for Server sidemongod
). If you use an IDE like WebStorm, I have a script called: mongo:local
that is going to run mongod
subsequently so you can setup a Compound Run Configuration
with start:dev
and mongo:local
to start the Backend with ease.npm run start:dev
to start the servermongod
running, go to config/default.ts
and check if the MONGO_URI
is correct.This repository houses the Project's frontend written using Angular 6
npm i
to install all the dependencies then just start the application with ng serve
proxy.conf.json
and how I setup the CLI to use the proxy
file when serving so that we can call our backend on localhost:3000
. This is so-called Cross Domains Request and our backend does not have CORS setup. Proxy will help us making the requests from 4200
to 3000
.Docker is supported.
docker
docker
branch then from root
directory, run docker-compose up
and Docker will take over.localhost
; Nest application will be running on localhost:3000
; cAdvisor which monitors our containers will be running on localhost:8080
. Again, it's worthwhile to explore the Dockerfile in both client
and server
directory; also nginx.conf
and docker-compose.yml
to get the gist of how Docker and Docker Compose work.P.S: Pull Requests, Contributions are most definitely welcomed :)