A fullstack JavaScript project, using technologies from the modern stack, such as:
These instructions should be sufficient for one to get the project going on their local machine
To clone the project, run
git clone https://github.com/bojidaryovchev/nest-angular.git
To install the dependencies after you've cloned the project, go to its root folder and run
npm install
Before you start the server, you need to build the Angular application. To do so, run
npm run build:universal
Once you have the Angular app built, you can start the server by running
npm run watch:server
Notice that the server uses MongoDB so we need to have a MongoDB instance running so the server can connect to it
If you need to work on the frontend and backend parts at the same time, you can run
npm run watch
Then, you can go to the Angular dev server at port 4200 and test server requests (to port 1337), we got a proxy to the backend
If you only need to work on the frontend, you can run
npm run watch:client
Alternatively, if you only need to work on the backend, you can run
npm run watch:server
Keeping in mind that you need to have the Angular app built and a mongodb connection established
Currently there are issues with several packages so even though we have GraphQL implemented, it stays commented out because it doesn't work.. Here are the instructions to make it work:
address(): net.AddressInfo | string
- change it to address(): string
Now, you can go ahead and uncomment the GraphqlModules on both client/server side and it works decently, I am using it in another project which is a clone of this one and everything works..
Modify with your application credentials:
To use it in mobile application with Facebook-token integration (Facebook App), use /api/auth/facebook/token endpoint.