Created 2017 as part of Bachelor Thesis in IT. Data collection, analytics and visualization for solar cell facilities.
Frontend and backend included.
- Find every
TODO:
in the project and add passwords / usernames / database configuration. - Follow
Setup Queries
in this README. - Follow
How to run
in this README. - Cash
- MySQL installed
- Port: 8889
Run these queries in order (manually)
CREATE DATABASE energiportalen CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE energiportalen_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE energiportalen_dev CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'energiportalen'@'%' IDENTIFIED BY ''; -- TODO: Set password
CREATE USER 'wasabi'@'%' IDENTIFIED BY ''; -- TODO: Set password and username
GRANT
ALL PRIVILEGES
ON
energiportalen.*
TO
'energiportalen'@'%';
GRANT
ALL PRIVILEGES
ON
energiportalen_test.*
TO
'wasabi'@'%';
GRANT
ALL PRIVILEGES
ON
energiportalen_dev.*
TO
'wasabi'@'%';
Before you run this, make sure that all the dependencies are installed (section "How to run" and "Dependencies")
Run this in the root of the repo, will create tables and populate with dev data
npm run bootstrap
Next step is to import the unit_data
CSV file!
Bravissimo, you're done!
npm install
(do this in backend/ and frontend/ as well)npm run start
npm install -g nodemon
to run and rerun javascript codesnpm install -g webpack
to compile es6 syntaxnpm install -g mocha
to run frontend and backend testsnpm install -g create-react-app
to run and compile the frontend
npm run test
, run frontend and backend testsnpm run test_be
, run backend testsnpm run test_fe
, run frontend testsnpm run test_in
, run integration tests
https://trello.com/b/WsRPCMmn/mvp
https://drive.google.com/open?id=0B5DXqVE7Dn66WUhFZkFFZ3hOZU0
https://www.overleaf.com/8813889qmfbzphnntbn
- Slack
- Google Calendar
- Figma
nano ~/.npmrc
Add the following
prefix = /usr/local
Run
npm install -g mocha