/reactjs-api-crud

Reactjs front-end to connect by api to do CRUD on MYSQL database - Application test for Gazeta do Povo

Primary LanguageJavaScriptMIT LicenseMIT

reactjs-api-crud [WIP]

Reactjs front-end to connect by api to do CRUD on MYSQL database - Application test for Gazeta do Povo

RUN API AND FRONT

Building and running on localhost

Backend

  1. Go to folder backend
cd backend
  1. Up the Database Container

Change .env.example to .env , and update if it is necessary for your enviroment.

docker-compose up -d
  1. Install dependencies
yarn install
  1. Seed your database with users fakes.
npx sequelize-cli db:seed:all
  1. Run Server
yarn serve

API CRUD

[GET , POST , PUT, DELETE] => YOUR_HOST + API_PORT + '/api/v1/users'

RUN FRONT-END

Install dependencies

yarn install

Run aplication

yarn start