/c1-be

Primary LanguageJavaScript

c1-be

This repository contains the endpoints of the fluid applications.

Member:

  1. Maulana Hassan S
  2. Risa Irmawati

Testing

Group 7

Database Diagram

Copy of Copy of Untitled Diagram (1)

Accessing API Documentation

https://kel1airplaneapi-production.up.railway.app/api

Library

  1. cloudinary
  2. cookie-parser
  3. cors
  4. dotenv
  5. express
  6. multer
  7. nodemon
  8. pg
  9. sequelize
  10. uuid
  11. bycript
  12. jsonwebtoken
  13. sequelize-cli
  14. swagger-ui-express
  15. nodemailer

How To Run

  1. Install Library
npm i
  1. Create an .env file on root folder
DB_USERNAME = ''
DB_PASSWORD = ''
DB_NAME = ''
DB_HOST = ''
DB_PORT =
DB_DIALECT = 'postgres'

CLOUD_NAME = ''
API_KEY = ''
API_SECRET = ''
CLODINARY_SECURE = true

JWT_SIGNATURE_KEY = "rahasia"
  1. Create Database
npm run db:create
  1. Migrating the model
npm run db:migrate
  1. Using seeder
npm run db:seed
  1. Running Project on development
npm run develop

Admin

Password: admin123

User

Password: risa123