GithubHelp home page GithubHelp logo

chalktalk's Introduction

chalktalk

Build Status Coverage Status

Project for the course "Software Development"

Project Structure

This is the main project structure:

chalktalk
├── chalktalk        # Python files
│   ├── static       # Static files (css, js, images)
│   │   ├── css
│   │   ├── fonts
│   │   ├── images
│   │   └── js
│   └── templates    # Jinja2 HTML templates
├── runserver.py     # Script file used to launch application
├── setup_test_db.py # Script to set up a database with dummy values
└── tests            # Unit & integration tests

Configuration

Do the following steps to set up a development instance of the program.

0. Program requirements

Make sure Python 3 and SQLite3 are installed.

1. Set up virtualenv

pip3 install virtualenv
git clone https://github.com/frestr/chalktalk.git
virtualenv chalktalk

For Linux/Mac:

source chalktalk/bin/activate
cd chalktalk

For Windows:

chalktalk/Scripts/activate.bat
cd chalktalk

2. Install the dependencies

pip3 install -r requirements.txt

3. Set configuration files

Copy the settings example file:

cp chalktalk/settings.py.example chalktalk/settings.py

and change the content of settings.py to contain the file location of the database (doesn't have to exist yet).

For example, if the database file is located in the project root directory, the file path can be

DATABASE_URL = 'sqlite:///database.db'

Copy the secret settings example file:

cp chalktalk/secret_settings.py.example chalktalk/secret_settings.py

and change the cookie signing key and the Dataporten OAUTH credentials. If Dataporten is not to be used, the values should be kept unchanged.

4. Create the database

If you want to generate a test database with some dummy values, do

./setup_test_db.py
cp dummy.db database.db

If not, just make sure the database file exists:

touch database.db

5. Start the dev server

For Linux/Mac:

export FLASK_APP=runserver.py
flask run

For Windows:

set FLASK_APP=runserver.py
flask run

Tests

To run the tests, do:

python -m unittest discover

in the project root directory

chalktalk's People

Contributors

aigtum avatar flamberhamber avatar frestr avatar skarsh avatar

Watchers

 avatar  avatar  avatar  avatar

chalktalk's Issues

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.