Technical test required by Wellness.
Electricity usage CRUD built with React and DB seeded with three .csv files, served with NodeJS.
Layout built with Bootstrap and data visualisation made with Recharts.
cd client; npm install; cd ../server; npm install;
Paste the following in the .env
file:
PORT=5000
DB_NAME=wellness_data
DB_HOST=mongodb://localhost
DOMAIN=http://localhost:3000
Seed DB from .csv files:
cd server/bin; node seed.js;
In different terminals:
cd server; npm run start;
cd client; npm start;
Verb | Endpoint | Result |
---|---|---|
GET | "/" | Home page |
GET | "/consumos" | Data table for CRUD operations |
GET | "/graficos" | Data visualisation page |
Verb | Endpoint | Result |
---|---|---|
GET | "/api/uses" | All uses json |
PUT | "/api/:_id" | Edit use |
DELETE | "/api/:_id" | Delete use |
👤 Jaime Fernández-Castaño
- Github: @jaimeferncast
- LinkedIn: @jaimeferncast
This README was generated with ❤️ by readme-md-generator