WILT stands for What I'v Learn't Today. The repo builds a platform where you can share anything learnt today such as how you accomplish a hard but yet a simple task, shortcuts you have discovered.
Codebase | Description |
---|---|
star | Angular frontend |
wars | Serverless backend built on nodejs, mongodb & Netlify Functions |
- Make sure you have nodejs installed in your system if not Click here to head at nodejs official site for installation
- After installing node js install @angular/cli by running
npm i g @angular/[email protected]
- Run
npm i
in the root directory
- Open the 'wars' folder and run
npm install
to get all dependencies
Since our backend is Serverless no power is needed to spin it. Here we have two methods to run the server:
- Run
npm start
this method uses netlify-lambda as a project's dependency to run - Head to localhost:9000/.netlify/functions/server/{SERVER AVAILABLE ROUTES}
- Run
npm install netlify-cli -g
to get the netlify cli - Now just run
netlify dev
in the root wars folder directory - The API will be available at localhost:8888/.netlify/functions/server/${{SERVER AVAILABLE ROUTES}
This method is more preferable when it comes to deploying the functions to netlify it provides fast approach.
- Netlify CLI - https://docs.netlify.com/cli/get-started/
- Netlify CLI Command Lists - https://cli.netlify.com/
MIT