Skip to content

Files

Latest commit

 

History

History

back-end

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Back end Server REST Api

NodeJS Express Sequelize mysql

Overview

NodeJS Packages

"dependencies": {
    "bcryptjs": "^2.4.3",
    "body-parser": "^1.19.0",
    "chai": "^4.3.3",
    "chai-http": "^4.3.0",
    "convert-array-to-csv": "^2.0.0",
    "cors": "^2.8.5",
    "csvtojson": "^2.0.10",
    "express": "^4.17.1",
    "jsonwebtoken": "^8.5.1",
    "mocha": "^8.3.2",
    "multer": "^1.4.2",
    "mysql2": "^2.2.5",
    "nodemon": "^2.0.7",
    "react-router-dom": "^5.2.0",
    "save": "^2.4.0",
    "semver": "^7.3.4",
    "sequelize": "^6.5.0"
  }

Initializing Database

  1. Start a mysql server
  2. Create a database
  3. Fill the credentials -> /back-end/app/config/db.config.js

Installation

For a quick installation

$ npm install
$ node server.js

(The first time running the server uncomment the lines 98-101 in server.js file)

Data

We randomly generated data to test the usage of the server. It can be found in folder data

License

MIT

Plug_and_Drive/back-end at master · SoftEngNtua2020/Plug_and_Drive · GitHub