Skip to content

Participate remotely in events via a three-paneled approach: live video, chat, and crowdsourced ranked questions. See what we're focused on next: https://trello.com/b/Wy9vwUA1/audiencias-publicas-interativas

License

Notifications You must be signed in to change notification settings

labhackercd/audiencias-publicas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov

Audiencias Públicas

Participate remotely in events via a three-paneled approach: live video, chat, and crowdsourced ranked questions. You can see the audiencias running in the following link https://edemocracia.camara.leg.br/audiencias/

Installation for developers

1. Using Docker

Run the following command and all the necessary dependences will be installed and the project will start to run automatically:

 docker-compose up

Depending on how Docker/Docker Compose was installed in your machine you may need to run this command as a super user.

How to run tests.

  • run the following command when the Docker container is already up:
sudo docker-compose exec -T web sh -c "pytest --cov-report term-missing --cov=apps"

2. Installing Audiencias localy

Install dependences

First of all, you need to install pipenv and npm.

After install these dependencies enter inside the directory where you download this repository, and run the following commands in the root: (P.S: You may need to run some of the following commands as super user)

pipenv install -r requirements.txt
apt install redis-server
npm install node-sass

After install redis check if it is running in your computer using:

systemctl status redis

If it is not, start it using:

systemctl enable redis

In case you need to restart it, it can be done with:

systemctl restart redis

Add Edem Navigation top bar

You just need to run the following commands if you are using it inside the e-Democracia. Otherwise you can skip then and go to the next section (Running the Audiencias).

Go to templates/components/edem-navigation directory

cd templates/components/edem-navigation

Run the following gits to get the git submodule of the edem navigation bar:

git submodule init
git submodule update --remote

This Edem Navigation will allow you to login into the audiencias with the e-Democracia login. In case you just want to run it see how it looks, you can login into the audiencias using an admin account. An admin user can be created using django admin commands.

Running the Audiencias

If you are inside and pipenv environment you can run it with:

pipenv run src/manage.py migrate
pipenv run src/manage.py runserver

Otherwise in case you are running it direct in your machine, inside the root of your directory, the following commands:

python3 manage.py migrate
python3 manage.py runserver

Support

Fell free to create any issue on this repository and contact the team responsible to maintain this project here on GitHub (@erivanio) or via email: [email protected].

Contributing

  1. Fork of this repository
  2. Write your code
  3. Create a Pull Request
  4. Our team will review your PR and merge as soon as possible!

License

This project is under GPLv3 License

About

Participate remotely in events via a three-paneled approach: live video, chat, and crowdsourced ranked questions. See what we're focused on next: https://trello.com/b/Wy9vwUA1/audiencias-publicas-interativas

Resources

License

Stars

Watchers

Forks

Packages

No packages published