6element is a open innovation project of waste optimisation. Learn more
git clone [email protected]:anthill/6element.git
cd 6element
Copy/create the missing file PRIVATE.json
situated in the core
folder containing:
{
"twiliossi": "...",
"twiliopwd": "...",
"mapbox_token": "...",
"mapId": "..."
}
Install dependencies locally (this is mainly to enable automated lint functionality)
cd core
npm install
To have automatic reload of the server and rebuild of the frontend use as well as fake data automatically populated:
docker-compose -f compose-dev.yml build
docker-compose -f compose-dev.yml up
If you want to clear (and lose all the data) because you changed the schema or for whatever reason you can drop and create the db as well as rewrite the declaration.js
:
docker-compose -f compose-init.yml up
When you only want to restart the service use:
docker-compose -f compose-prod.yml up -d