Welcome to the repo that host the required code for the ORM's module as part of the ITK 4th Generation.
The repo is using the following technologies:
express
(node server framework)sequelize
(SQL ORM)mongoose
(Mongo ORM)
$ npm install
$ yarn
I encourage you to use yarn.
Just run
$ yarn run dev
One of the clients of Ksquare wants to create the next Reddit, so it want to have an MVP (Minimum Viable Product) ASAP.
They want to have a minial interface when the users post a message and it can receive comments from other users.
The Lead Backend Engineer shared with you an entity relation diagram that show the relation that will be exists between the elements.
We need to implement a simple API that allow us to do:
- Create
users
- Create
posts
- Retrieve single
user
information - Retrieve all
users
information - Retrieve single
post
information - Retrieve all
posts
- Create a
comment
as part of a post - Retrieve all
comments
from a post
Business considerations
- A
user
can have zero or manyposts
- Many
posts
could belong to auser
- A
post
could have zero or manycomments
- A
comment
was done by auser
and belongs to apost
We need to cover these requirements and tell the QA team to run the smoke tests over the API to see if all the requirements are covered in a good way!
Test passed | Grade |
---|---|
8 tests | 100% |
6 tests | 90% |
4 tests | 80% |
2 tests | 70% |
1 tests | 60% |
Action | Points |
---|---|
Complete users CRUD |
3 |
Complete posts CRUD |
3 |
Complete comments CRUD |
3 |
Not any |
1 |
Feel free to reach Daniel ([email protected]) for any question, remember that we are here to learn not to suffer.
Hope you enjoy it! Good luck!