This project would not be possible without other developers contributing their time. If you find an error please create an issue and if you can fix it we invite you to create and submit a pull request 😄.
We have a chat room - #horas-project to help the team communicate and coordinate. If you need an account you can create one here.
Please take a look at our issue list for ideas on what to work on or add your own:
There's a couple of ways to run this project locally:
Installation
Linux
You can find instructions on how to install Docker for a number of Linux distributions here.
Popular distributions:
Mac OS or Windows
The best/easiest way to have Docker on your Mac or Windows PC is using Docker Desktop.
** Creating Horas Docker images **
# Clone the repo
$ git clone https://github.com/Code4PuertoRico/horas.git
# Make a copy of the .env.example file
$ cp .env.example .env
# From the newly cloned repo, install frontend build dependencies
$ cd horas/static
$ npm install
# Build the Docker image and run it in detached mode
$ cd ..
$ docker-compose up --detachThe docker-compose.yml file contains all the configuration needed to have a running instance of Horas.
Now you can point your browser to http://localhost:8000/. To access the admin panel go to http://localhost:8000/admin/, and use the following credentials:
- username: admin
- password: abc123
Requirements
- Python 3.7
- Pipenv
- Node.js 14 (includes npm)
# Clone the rep
$ git clone https://github.com/Code4PuertoRico/horas.git
# Install build dependencies
$ cd horas/static
$ npm install
# Make a copy of the .env.example file
$ cd ..
$ cp .env.example .env
# Install Python dependencies
$ pipenv install --dev
# Django migrate and initial data load
$ pipenv run python manage.py migrate
$ pipenv run python manage.py loaddata apps/profiles/fixtures/admin.json
# Run the Djang server
$ pipenv run python manage.py runserverNow you can point your browser to http://localhost:8000/. To access the admin panel go to http://localhost:8000/admin/, and use the following credentials:
- username: admin
- password: abc123
When installing the Python dependencies with Pipenv:
$ pipenv install --devIt's possible to get the following error:
src/_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found
#include <libmemcached/memcached.h>
^
1 error generated.
This can happen when libmemcached is not installed on your system. To solve this please install libmemcached:
Using Homebrew
$ brew install libmemcachedOnce installed you can go to the following step to continue: $ pipenv install --dev.
$ pipenv run python manage.py test --configuration=Testing --verbosity=3 --noinput
We have a dedicated branch for you! We will maintain the most recent design here.