Giter VIP home page Giter VIP logo

camper-plus's Introduction

Camper+

A wesbite to ease the work of camp administrators and the lives of parents

LIVE DEMO

Deployed on Heroku (https://camperapp.herokuapp.com)

FAQ (https://camperapp.herokuapp.com/faq)

Sample Admin Login email: [email protected] password: notabela

Sample Parent Login email: [email protected] password: notabela

HOW TO USE IT

Checking out and initializing the git repository

git clone https://github.com/Notabela/Camper-Plus.git
cd Camper-Plus

Set up Python Virtual Environment

pip install virtualenv
virtualenv .venv
source .venv/bin/activate

Set up App Environment

python setup.py install
pip install -r requirements.txt

Create an admin and parent sign in accounts

To sign in, you'll need to create an admin and/or a parent account

To create an admin account(In ipython in Home Directory):

    ipython
    from camperapp.models import db, User, Role
    email = '[email protected]'
    password = testadmin
    user = User(email, password, Role.admin)
    db.session.add(user)
    db.session.commit()

To create a parent account(In ipython in Home Directory):

    from camperapp.models import db, User, Parent, Role
    email = '[email protected]'
    password = testparent

    parent = Parent()
    parent.first_name = 'Example'
    parent.last_name = 'Example'
    parent.email = email

    db.session.add(parent)
    db.session.commit()

    user = User(email, password, Role.parent)
    user.parent_id = parent.id
    db.session.add(user)
    db.session.commit()

Run Application Locally (debug Mode)

change db_path in camperapp/__init.py__ to mock_db_path

python application.py
Runs at http://127.0.0.1:5000

Developer Documentation

Developer Docs (https://notabela.github.io/Camper-Plus/)

TESTS, PYLINT & COVERAGE

Run Tests

pip install pytest
pytest (in base directory)

Code Coverage

pip install pytest-cov
pytest --cov=camperapp tests/ (in base directory)

Pylint Score

pip install pylint
pylint camperapp (in base directory)

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.