An open API service indexing awesome lists of open source software.

https://github.com/seanmisra/node-coding-exercises

10+ node exercises
https://github.com/seanmisra/node-coding-exercises

express mongodb nodejs

Last synced: 3 months ago
JSON representation

10+ node exercises

Awesome Lists containing this project

README

        

Commits correspond to each exercises

1. Setup npm project
2. Web server with http module
3. Web server with express module
4. Configure CORS with express (allow all origins)
5. Write POST API that returns sum of all elements in array (make sure to handle error scenarios)
6. Write POST API, where body has two fields (strings) that are concatenated into a single result
7. Write GET API, with parameters min/max. Will return array of integers in between range
8. Read file from file system, perform data manipulation, return via GET API (use path/fs modules)
9. Repeat exercise 8, with stream syntax (don't consider large file for now)
10. EventEmitter example
11. Modules with EventEmitter (require EventEmitter from another module)
12. MongoDB (create client; connect to Mongo)
13. Make an external API request (GET) with axios
14. Make an external API request (POST) with axios