Giter VIP home page Giter VIP logo

pos's Introduction

ORM Practice

Welcome to the repo that host the required code for the ORM's module as part of the ITK 4th Generation.

Stack

The repo is using the following technologies:

  • express (node server framework)
  • sequelize (SQL ORM)
  • mongoose (Mongo ORM)

Set the app!

How to run

Install the packages.

Using npm

$ npm install

Using yarn

$ yarn

I encourage you to use yarn.

Run the server

Just run

$ yarn run dev

Resources

Homework

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.

Screenshot

We need to implement a simple API that allow us to do:

  1. Create users
  2. Create posts
  3. Retrieve single user information
  4. Retrieve all users information
  5. Retrieve single post information
  6. Retrieve all posts
  7. Create a comment as part of a post
  8. Retrieve all comments from a post

Business considerations

  1. A user can have zero or many posts
  2. Many posts could belong to a user
  3. A post could have zero or many comments
  4. A comment was done by a user and belongs to a post

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!

How the homework will be graded

Test passed Grade
8 tests 100%
6 tests 90%
4 tests 80%
2 tests 70%
1 tests 60%

Extra points!!

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!

pos's People

Contributors

dnalcudia avatar

Watchers

Daniel Alcudia avatar

Forkers

aguerod-ks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.