GithubHelp home page GithubHelp logo

mohamaddalal / stregsystemet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from f-klubben/stregsystemet

0.0 0.0 0.0 2.26 MB

The very public stregsystem repo

License: Other

JavaScript 6.82% Python 62.39% CSS 5.21% HTML 25.58%

stregsystemet's Introduction

Stregsystemet Django CI Actions Status codecov

This is the current stregsystem in the F-Klub.

Branches

  • master: The running code on the live system.
  • next: The set of changes which will be included in the next release.

Python Environment

For windows using Anaconda and virtual environments:

  1. Download and install Anaconda
  2. In a shell:
  • conda create -n stregsystem python=3.6
  • activate stregsystem
  • pip install -r requirements.txt
  1. ???
  2. Profit

For Ubuntu with virtual envs:

  1. Install python3 with pip
  • sudo apt install python3 python3-pip python3-venv
  1. Create virtual environment
  • python3 -m venv venv
  1. Activate virtualenv
  • source venv/bin/activate
  1. Install packages
  • pip3 install -r requirements.txt
  1. ???
  2. Profit

Using Testdata

In order to simplify development for all, we have included a test fixture. Using testserver will delete the data after running. To use it do the following:

  1. python manage.py migrate
  2. python manage.py testserver stregsystem/fixtures/testdata.json
  3. ???
  4. Profit

Admin panel: http://127.0.0.1:8000/admin/
Login: tester:treotreo

Stregsystem: http://127.0.0.1:8000/1/
User: tester

Persistent Testdata

Using runserver will automatically reload django on code change, and persist data in the database configured in local.cfg (can be whatever backend you want to use). First time:

  1. python manage.py migrate
  2. python manage.py loaddata stregsystem/fixtures/testdata.json
  3. python manage.py runserver
  4. ???
  5. Profit

From then on

  1. python manage.py runserver
  2. ???
  3. Profit

stregsystemet's People

Contributors

virtualsatai avatar falkecarlsen avatar hrjakobsen avatar delusionallogic avatar joandrsn avatar krestenlaust avatar boand avatar dependabot[bot] avatar johanthomsen avatar josmad avatar zaph-x avatar fishbacon avatar asger-weirsoee avatar jenrik avatar zinoex avatar kimsey0 avatar minijmo avatar naitsabot avatar jonaskjellerup avatar scumbagdog avatar patrickreiffenstein avatar atjn avatar grunberg avatar klem-bot-delta avatar simson475 avatar murmeldyret avatar pg2w avatar mathiassmichno avatar mast3rwaf1z avatar mjr 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.