API for PowerGrid
git clone https://github.com/MaximumBlueGreen/powergrid-api.git
npm install
.local.env
is provided as a starting point for your local configuration. Copy this to .env
.
Run a PostgreSQL instance on your machine (https://postgresapp.com is a popular choice). Replace the DATABASE_URL
environment variable in .env
with your local connection string. On the command line, run knex migrate:latest
to initialize the schema and populate the database with seed data.
npm start
should do the trick!
All API routes will be available at http://localhost:3000/
All branches are created from and pushed to develop
. master
is reserved for official releases. Name your branches succinctly and descriptively.
Be descriptive. If you need a style, https://www.conventionalcommits.org is a good source.
All code must lint without warnings or errors. By default, every commit will be linted according to the specifications in .eslintrc.json
.