Skip to content

anthill/6element

Repository files navigation

6element

6element is a open innovation project of waste optimisation. Learn more

Getting started

Dependencies

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

Initialize the database

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

Running the app

Daily routine in dev

npm run dev 

Deploying in production

npm run prod