Skip to content

code4romania/redirectioneaza

Redirectioneaza

GitHub contributors GitHub last commit License: MPL 2.0

  • tax form #230 made easy
  • digital solution for an offline process
  • as simple and as efficient as possible
  • helps you compare and choose who to support
  • helps NGOs reach their public and keep track of their supporters

See the project live

Contributing | Built with | Feedback | License | About Code for Romania

Contributing

This project is built by amazing volunteers, and you can be one of them. Here's a list of ways in which you can contribute to this project. If you want to make any change to this repository, please make a fork first.

Help us out by testing this project in the staging environment. If you see something that doesn't quite work the way you expect it to, open an Issue. Make sure to describe what you expect to happen and what is actually happening in detail.

If you would like to suggest new functionality, open an Issue and mark it as a [Feature request]. Please be specific about why you think this functionality will be of use. If you can, please include some visual description of what you would like the UI to look like if you’re suggesting new UI elements.

Built With

Programming languages

Platforms

Frontend framework

  • HTML + TailwindCSS + AlpineJS

Package managers

Database technology & provider

The project has been configured to work with the following databases:

Development

Deployment without Docker

Prerequisites

  • Python 3.12
  • NVM
  • a PostgreSQL 16.2 database (can be run with Docker)
  1. Go to the root of the project
  2. Run cp .env.example .env to create the environment file
  3. Set up the Node.js environment
    1. Go to the backend directory
    2. Run nvm use || nvm install to install the Node.js version specified in the .nvmrc file
    3. Run npm install to install the Node.js dependencies
  4. Set up the Python environment
    1. Create a virtual environment and activate it with python3 -m venv venv && source venv/bin/activate
    2. Go to the backend directory
    3. Run pip install -r requirements-dev.txt to install the Python dependencies

Running the project

  1. Run the Django project in one terminal
    1. Go to the backend directory
    2. Run source venv/bin/activate to activate the Python virtual environment
    3. Run django-admin runserver localhost:8000 to start the Django development server
  2. Run the frontend in another terminal
    1. Go to the backend directory
    2. Run nvm use to use the Node.js version specified in the .nvmrc file
    3. Run npm run dev to start the frontend development server

Compiling the old CSS with less

Go to the root of the project and run the following commands:

pushd backend/

nvm use --lts || nvm install --lts

npm i -g less@2.7.3 less-plugin-clean-css@1.5.1 bower@1.8.14

bower install

cp -r bower_components/  static_extras/

pushd static_extras/

lessc css/main.less > css/main.css --clean-css="--s1 --advanced --compatibility=ie8"

rm -rf bower_components/

popd

popd

or, in a one-liner:

pushd backend/ && nvm use --lts || nvm install --lts && npm i -g less@2.7.3 less-plugin-clean-css@1.5.1 && cp -r bower_components/  static_extras/ && pushd static_extras/ && lessc css/main.less > css/main.css --clean-css="--s1 --advanced --compatibility=ie8" && rm -rf bower_components/ && popd && popd

Deployment With Docker

  1. Go to the root of the project
  2. Run cp .env.example .env to create the environment file
  3. Run make run to start the containers with an PostgreSQL database
  4. Open http://localhost:8080 in your browser

Feedback

License

This project is licensed under the MPL 2.0 License — see the LICENSE file for details

About Code for Romania

Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of around 2.000 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at contact@code4.ro.

Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread across 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.