Manifesto's backend API.
- docker & docker-compose
- NodeJS 6+
$ npm install
$ npm run dev
$ npm test
Following variables are needed to correctly boot the server
DB_CONNECTOR=postgresql
DB_URL=postgres://postgres:postgres@localhost/manifesto
DB_MIGRATE_STRATEGY=safe
You can provision them using an .env
file
-
To automatically migrate your applications models use
DB_MIGRATE_STRATEGY=safe
. It will executeautoupdate
method from Loopback see docs. -
To re-create DB tables from scratch, use
DB_MIGRATE_STRATEGY=drop
which will call Loopback'sautomigrate
method see docs WARNING in many situations, this will destroy data!
Migrate command can also be run like:
$ npm run migrate
$ npm start
Email: info[@]adabits[.]org
Twitter: @adab1ts
Facebook: Adab1ts
LinkedIn: adab1ts
Designed, developed and maintained by
Klaudia Alvarez | Carles Muiños |
The code of this app is © 2017 Adab1ts under the terms of the MIT License.