- User can sign up
- User can sign in
- User can post property
- User can update property
- User can set property as sold
- user can delete property
- NodeJS/Express: Server
- MySQL: Storage
- JWT: Token based authentication
- bcryptjs: Password security
- winston/morgan: Logs
- Joi: Validations
- Jest: Authomating unit test
start
: Starts the server with nodestart:dev
: Starts the server in watch modedb:up
: Creates the databasedb:down
: Drops the databasetables:up
: Creates database tablesdb:init
: Creates both the database and tables
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