Skip to content

DeveloperAlan/aip-assignment3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aip-assignment3 - Cheap Aussie

About

This repo contains the backend code for the app Cheap Aussie, made for UTS Advanced Internet Programming, Assignment 3. Built with Node.js, Express and sweat.

Installation

Run the following command to run the backend code:

# install modules
$ npm install 
# or if you want to use yarn
$ yarn install

Start the App

# In terminal
$ npm start

#API Docs

NOTE: API Url: http://localhost:5000/ or whatever port you specified in your env

Register User [POST] (/api/user/register/)

  • Request
    • Body (application/json) { "firstName":"John", "lastName":"Doe", "email":"john@example.com", "password":"111" }

Login User [POST] (/api/user/authenticate/)

  • Request

Get user detail [GET] (/api/user/myaccount/)

  • Request
    • Headers Authorization : USER TOKEN

Update user detail [PUT] (/api/user/update/USER ID)

  • Request
    • Headers Authorization : USER TOKEN
    • Body { "firstName":"John12", "lastName":"Doe12", "email":"john12@example.com" }

Delete user account [DELETE] (/api/user/delete/USER ID)

  • Request
    • Headers Authorization : USER TOKEN

TODO

  • Add Items API
  • Add OAuth2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published