Skip to content

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.

Notifications You must be signed in to change notification settings

jaimeferncast/Wellness-Technical-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wellness Technical Test 👋

Version Version

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.


Install

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

Usage


Seed DB from .csv files:
cd server/bin; node seed.js;

In different terminals:

cd server; npm run start;
cd client; npm start;



Endpoints Table


Client

Verb Endpoint Result
GET "/" Home page
GET "/consumos" Data table for CRUD operations
GET "/graficos" Data visualisation page

Server

Verb Endpoint Result
GET "/api/uses" All uses json
PUT "/api/:_id" Edit use
DELETE "/api/:_id" Delete use



Author


👤 Jaime Fernández-Castaño




This README was generated with ❤️ by readme-md-generator

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published