/voffice-test

Primary LanguageJavaScript

voffice-test

Presequites

  • PHP Ver. 8.2.0
  • phpMyAdmin Ver. 5.2.0

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": "voffice-test",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  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