6element is a open innovation project of waste optimisation. Learn more
Install:
- Node.js 4.0
- Postgresql 9.4
- Postgis
then use npm install
to install all the dependencies.
Create a PRIVATE.json
following the example
tette
In the psql console (just type psql
to access it), you can init your db with:
alter user postgres password 'toto';
CREATE DATABASE element OWNER postgres;
In your regular console:
node tools/init-database.js
node tools/update-tables.js // if you want to add or modify your tables, it doesnt drop the tables, so you're fine
you can always use psql
separately to load and dump data:
psql -p5432 -U postgres -d element < Desktop/latest.sql
npm run dev
npm run prod