Skip to content

Cloud Computing Repository for CS23-PS276 Bangkit Capstone Project "Sahabat Lansia"

Notifications You must be signed in to change notification settings

CS23-PS276/Cloud-Computing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

logo sahabat lansia

Cloud-Computing

Cloud Computing Repository for CS23-PS276 Bangkit Capstone Project "Sahabat Lansia"

cloud architecture

The Service Available:

  • Authentication
    POST /register
    POST /login
  • Users
    PUT /users/:xid
    GET /users
    GET /users/:xid
    DEL /users/:xid
  • Lansia
    POST /lansia
    GET /lansia?showAll=true  
    GET /users/:xid
    DEL /users/:xid

How to use

  • Clone into your local repository
    git clone {{the repository link}}
  • Instal all dependecies
    Open the folder in VSC or any code editor and then open the terminal and run this command
    npm i
  • Config all environment
    Open the file .env.example and copy all the code there and create new file named .env and paste all the code you copied before
    the configuration will look like the following
    NODE_ENV=
    KEY=
    JWT_KEY=
    XID_LENGTH=
    BYCRIPT_ROUND=
    DB_USER=
    DB_PASS=
    DB=
    HOST=
    DIALECT=
    DB_PORT=
    CLIENT=
    PORT=
    JWT_ACCESS_LIFETIME=
    
    input all the configuration field
  • Create the database
    To create the database you just have to run this command
    npm run db:setup
  • Start service
    If you already setup the environment, copy this command and run it in your terminal
    npm start

if you don't find an error, it means that the API ready to use

About

Cloud Computing Repository for CS23-PS276 Bangkit Capstone Project "Sahabat Lansia"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published