heshdotcc / hechalaley

An open-source bill tracking utility for Congresses

Home Page:https://hechalaley.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hecha la Ley

An open-source bill tracking utility for Congresses.

Usage

Before starting, make sure you have Node 8.x installed and MongoDB >=3.x running.

  1. Only the first time, run the bash command: bin/ensure-indexes. To make sure to create the indexes on your MongoDB.

  2. Run the server: npm start

Development

During development you can use npm run dev to run the server and auto-reload on any file-change.

Docker Compose on Development

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 up

If you want to close the server simply press CTRL+C, and run the following command to make sure that everything is stopped:

docker-compose down

If 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 --build

If 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

License

About

An open-source bill tracking utility for Congresses

https://hechalaley.org

License:GNU General Public License v3.0


Languages

Language:JavaScript 92.1%Language:CSS 7.7%Language:Dockerfile 0.2%