Coder Social home page Coder Social logo

cogs3's Introduction

cogs3 cogs3

Build Status codecov Codacy Badge license

Demo

Development server

Sequence Diagrams

Getting started

  1. Checkout the source code.
mkdir -p ~/code && cd $_
git clone [email protected]:tystakartografen/cogs3.git
  1. Create a virtual environment.
mkdir -p ~/venvs/cogs3 && cd $_
virtualenv -p /usr/local/bin/python3 .
source bin/activate

Replace /usr/local/bin/python3 with the path to a Python 3 executable. On macOS this should be installed from Homebrew.

  1. Install the requirements.
cd ~/code/cogs3
pip install -r requirements.txt
  1. Configure the environment variables.
cd cogs3
mv .template_env .env
  1. Edit .env to include, at a minimum, an arbitrary SECRET_KEY. Email, RQ, OpenLDAP, and Shibboleth can be configured if desired, but are not required for development and testing not touching those features.

  2. Create the database.

cd ..
python manage.py migrate
  1. Load institution data into the database, default institution data is available in fixtures.
python manage.py loaddata institutions.yaml
  1. Create an admin user.
python manage.py createsuperuser
  1. Run the unit tests.
python manage.py test -v 3
  1. Generate coverage report.
coverage run manage.py test
coverage html
  1. Install redis.
brew install redis

Replace brew with your package manager. On Debian and Ubuntu, the package is named redis-server; i.e.

sudo apt install redis-server
  1. Start the redis server.
redis-server &
  1. Test redis server is running.
redis-cli ping
>>> PONG
  1. Start the development server.
python manage.py runserver

cogs3's People

Contributors

tystakartografen avatar edbennett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.