rdhhauzan / dansmultipro-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dansmultipro-test

DBMS Uses

  • PostgreSQL

Tech Stack Uses

  • Backend : NodeJs
  • Frontend : ReactJs

Installations

  1. Clone the Repo
https://github.com/rdhhauzan/voffice-test.git
  1. Install Requirement for Backend
cd backend/
npm install
  1. Change the config file according to your database on backend/config/config.json
"development": {
    "username": "your database username",
    "password": "your database password (set to null without quotation mark if your database dont have a password)",
    "database": "dansmultipro-test",
    "host": "127.0.0.1",
    "dialect": "postgres"
  },
  1. Create DB and Migrate
npx sequelize-cli db:create
npx sequelize-cli db:migrate
  1. Move to Frontend Folder
cd frontend/
  1. Install Requirement for Frontend
npm install

How To Run

  1. Run Backend Server
cd backend/
npx nodemon app.js
  1. In new terminal, Run Frontend
cd frontend/
npm start

Notes

  1. If you run the app, make sure you have 2 terminals open because you are running 2 servers at the same time
  2. Make sure you run the backend server on port 3000

About


Languages

Language:JavaScript 90.9%Language:HTML 5.9%Language:CSS 3.2%