NestJS 教程仓库
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 serveproxy.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.
dockerdocker 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 :)
暂无开放 Issues,或尚未同步最近议题。