Cloud Computing Repository for CS23-PS276 Bangkit Capstone Project "Sahabat Lansia"
- 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
- 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 commandnpm 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 followingNODE_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 commandnpm run db:setup
- Start service
If you already setup the environment, copy this command and run it in your terminalnpm start
if you don't find an error, it means that the API ready to use

