Skip to content

Sa-pphire/Capstone_project_Nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Group 45 Capstone_project_Nodejs with Express, Mysql, and JWT

Features

  1. User can sign up
  2. User can sign in
  3. User can post property
  4. User can update property
  5. User can set property as sold
  6. user can delete property

Tools

  • NodeJS/Express: Server
  • MySQL: Storage
  • JWT: Token based authentication
  • bcryptjs: Password security
  • winston/morgan: Logs
  • Joi: Validations
  • Jest: Authomating unit test

Available scripts

  • start: Starts the server with node
  • start:dev: Starts the server in watch mode
  • db:up: Creates the database
  • db:down: Drops the database
  • tables:up: Creates database tables
  • db:init: Creates both the database and tables

API Usage

User must signup using the route below to gain a token for a day to post property,

/api/v1/auth/signup

update the property the user posted

/api/v1/admin/property/:property_id

set property to sold and

/api/v1/admin/property/:property_id/sold

delete property

/api/v1/admin/property/:property_id

GetALL properties

/api/v1/property

Get single property

/api/v1/property/:property_id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •