- Install all project dependencies
- You have docker compose to init the db. raise the mongo container and validate you can access the db
- run 'npm run seed' to insert all mocks to your db
- Now you can start your service and check it's alive
- check http://localhost:8080/keepalive is returning 'service alive'
- Authentication:
- Add auth routing: /auth/signin which will receive the following body: { "email": "testuser@gmail.com", "password": "Aa1234" } It should return a 'success signin' message if authentication passed and proper response otherwise. In order to implement this kind of authentication, you should use passport with LocalStrategy. The file of the signin logic is in passport.ts(find the ToDo's) and after it implemented you should connect the routing to that logic.
- Validate the email is valid email address format and the password at least 6 chars
- No valid routing found response:
- Add a logic where if the user request for url which isn't defined, you'll always return proper http status code and message: "sorry but that is invalid url"
- Symbols support:
- Create new schema for symbols model. the schema should support: name, description and other fields if you want.
- Add an api call which will add a list of those symbols to our db -> add to this project the request of 100 symbols
- Create another api call to retrieve all symbols based on pagination -> meaning the api call will return max of 20 symbols each time we call it. In order to receive all symbols I will have to call the api call 5 times.
Uh oh!
There was an error while loading. Please reload this page.
Latest commit
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|