GithubHelp home page GithubHelp logo

e-commerce-1's Introduction

Bliba

Products Endpoints

METHOD ENDPOINT HEADERS BODY DESCRIPTION SUCCESS ERROR
POST /products name (string), price (number), stock (number), createdAt (default new Date), image (string) Create product return New product Object return error
GET /products Get All product return All product return error
GET /products/:id Get One product return One product return error
PUT /products/:id name (string), price (number), stock (number), createdAt (default new Date), image (string) Update product return Updated product Object return error
DELETE /products Delete product return Deleted A product return error

Users Endpoint

METHOD ENDPOINT HEADERS BODY DESCRIPTION SUCCESS ERROR
POST /users/register username (string), email (string), password (string) Create user return User Object return error
POST /users/login email (string), password (string) Login user return Token return error

Usage

Make new file .env With Template:

JWT_SECRET = YOUR-SECRET-HERE
CLOUD_BUCKET=<your-bucket-name>
GCLOUD_PROJECT=<your-project-id>
KEYFILE_PATH=<youre-keyfile-pth>

Run these commands:

$ service mongod start
$ npm install
$ npm run dev

e-commerce-1's People

Contributors

christianhs23 avatar windiana 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.