Skip to content

QuentinQuarantine/TryPython

Repository files navigation

Try Python Build Status Coverage Status For the badge

try-python

The goal of this project is to teach python to new people. This project is a python version from try-haskell

Table of contents

  1. Installing
  2. running
  3. Contributing

Installing

  • Clone this repository
 git clone git@github.com:IuryAlves/TryPython.git
 cd TryPython
  • Install python 2.x on your system
  • Install git
  • Install nodejs
  • Make sure that yarn is installed, open a terminal and type:
    yarn -v
  • Install npm dependencies
    yarn
  • Install python virtualenv:
sudo pip install virtualenv
  • Create a virtualenv:
virtualenv venv
source venv/bin/activate
  • Install project backend dependencies:
pip install -r requirements/requirements.txt
  • Generate a DJANGO_SECRET_KEY here

  • Create a .env file in the home of the project and insert this lines

    DEBUG=True
    
    DJANGO_SECRET_KEY=[the-secret-key-that-you-gerenate]
    

    Then save and close the file.

  • Run the migrations:

TryPython/manage.py migrate
  • Load the fixtures of the project
TryPython/manage.py loaddata steps.json

Running

  • Run
 TryPython/manage.py rollup_server

Now, just access localhost:8000

Contributing