Skip to content

A nodejs olx inspired api, for educational porpuses, created based on b7web project. Adapted from MongoDB to Mysql

Notifications You must be signed in to change notification settings

christopherldo/node-olxapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to RUN

  • mv .env.example .env to copy the env example to a real .env;
  • Go to .env file and configure your MySQL connection and also set your JWT_SECRET;
  • npm install or yarn install to install all needed libraries;
  • npx sequelize db:migrate or yarn sequelize db:migrate to set the database with its columns and fields;
  • yarn sequelize db:seed:all to setup default needed data on db;
  • npm start or yarn start to start the server;
  • If you want to undo the database creation: npx sequelize db:migrate:undo or yarn sequelize db:migrate:undo;

Front-end

Front-end app here: React OLX