An open-source bill tracking utility for Congresses.
Before starting, make sure you have Node 8.x installed and MongoDB >=3.x running.
-
Only the first time, run the bash command:
bin/ensure-indexes. To make sure to create the indexes on your MongoDB. -
Run the server:
npm start
During development you can use npm run dev to run the server and auto-reload on any file-change.
If you have Docker installed, this repo contains the file docker-compose.yml prepared and configured to run a complete development server with one simple command:
On the root of the project, just run docker-compose up and it will start a
complete server development with MongoDB and email services. It will also listen
for changes on your local files and update them accordingly:
docker-compose upIf you want to close the server simply press CTRL+C, and run the following
command to make sure that everything is stopped:
docker-compose downIf you change any dependency on the package.json you have to stop docker-compose
with the previous command, and then start it again but instructing it to rebuild
the containers:
docker-compose up --buildIf for any chance, the previous command didn't work, you can also send the currently
running container custom commands, in this case an npm install to make sure all
the dependencies are updated:
docker-compose exec app npm install