-
Install dependencies:
- Python >= 3.6
- Node >= 8.0
- GNU make
- PostgreSQL >= 9.6
- Redis >= 3.2
- pipenv
-
Copy
.env.example
file to.env
and fill in necessary fields, and load environment variables by:source .env
-
Initialize database using migration files under
api/database/migrations
sudo su postgres -c "psql -c \"CREATE ROLE ${POSTGRES_USER} WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD '${POSTGRES_PASSWORD}';\"" sudo su postgres -c "createdb ${POSTGRES_USER}" sudo su postgres -c "cat api/database/migrations/*.sql | psql -d ${POSTGRES_USER}"
-
Run
make install
to install requirements for thefrontend
andapi
projects; -
Run
make run-worker
to start a redis-queue worker -
Run
make run-api
to start theapi
server, ormake run-frontend
to start thefrontend
server. Runmake test
to execute tests.
- Install VirtualBox and Vagrant;
- Copy
.env.example
file to.env
and fill in necessary fields; - Run
vagrant up
from your project root directory (Windows users need to run this command as administrator to avoid the symlink error);
-
Install Docker and docker-compose;
-
Copy
.env.example
file to.env
and fill in necessary fields, and load environment variables by:source .env
-
Run
docker-compose up
from your project directory to bring up services. To execute tests, rundocker-compose -f docker-compose.test.yml up --abort-on-container-exit
- HTML & CSS: Code Guide by @mdo
- JavaScript: Airbnb JavaScript Style Guide
- Python: PEP 8
- API Style: GitHub API v3
- Git Commit Style: AngularJS Git Commit Message Conventions
- Veriosning: Semantic Versioning 2.0.0
Code for the UALR internal only can only be pushed to the branch "UALR-INTERNAL-ONLY"