Skip to content

Nokondi/ezsetup-assessment-module

 
 

Repository files navigation

CircleCI

ezsetup

Introduction

Dev Installation

From Source

  1. Install dependencies:

    • Python >= 3.6
    • Node >= 8.0
    • GNU make
    • PostgreSQL >= 9.6
    • Redis >= 3.2
    • pipenv
  2. Copy .env.example file to .env and fill in necessary fields, and load environment variables by:

    source .env
  3. 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}"
  4. Run make install to install requirements for the frontend and api projects;

  5. Run make run-worker to start a redis-queue worker

  6. Run make run-api to start the api server, or make run-frontend to start the frontend server. Run make test to execute tests.

With Vagrant

  1. Install VirtualBox and Vagrant;
  2. Copy .env.example file to .env and fill in necessary fields;
  3. Run vagrant up from your project root directory (Windows users need to run this command as administrator to avoid the symlink error);

With Docker

  1. Install Docker and docker-compose;

  2. Copy .env.example file to .env and fill in necessary fields, and load environment variables by:

    source .env
  3. Run docker-compose up from your project directory to bring up services. To execute tests, run

    docker-compose -f docker-compose.test.yml up --abort-on-container-exit

Contributing

Coding Styles

Developing and Deploying

For the UALR internal version only

Code for the UALR internal only can only be pushed to the branch "UALR-INTERNAL-ONLY"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 52.2%
  • Python 35.2%
  • JavaScript 12.0%
  • Other 0.6%