Giter VIP home page Giter VIP logo

simple-api-crud's Introduction

simple-api-crud

A project for Mid Test at @hacktiv8

Tech stack

  • ExpressJS
  • MongoDB

MVC

No view needed, just Postman it

Database Schema

Food

  • name
  • price
  • expired_date

Restaurants

  • name
  • owner
  • address
  • open_status

Routes API

Food

Routes HTTP Description
/api/foods GET Get all foods
/api/foods/:id GET Get Single food
/api/foods/ POST Create a food
/api/foods/:id DELETE Delete a food
/api/foods/:id PUT Update data of a food

Restaurant

Routes HTTP Description
/api/restaurants GET Get all restaurants
/api/restaurants/:id GET Get Single restaurant
/api/restaurants/ POST Create a restaurant
/api/restaurants/:id DELETE Delete a restaurant
/api/restaurants/:id PUT Update data of a restaurant

NOTE

  • CRUD, careful when update.
  • No relationship ๐Ÿ˜„

Step

Release 0
  • Documenting first. READ.ME
    • Description
    • Step
    • Schema
Release 1
  • foods CRUD
Release 2
  • restaurants CRUD
Release 3
  • Refactor

Installation guide

git clone [email protected]:dikyarga/simple-api-crud.git
cd simple-api-crud
npm install
npm run dev

simple-api-crud's People

Contributors

dikyarga avatar

Watchers

 avatar  avatar

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.