Skip to content

michaelsthr/CozyKurse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to CozyKurse

CozyCourse is a powerful web application for managing courses. The app was developed as part of a university project.

CozyKurse

Getting Started

How to start mongo db with docker?

  1. Install docker engine and start the app docker installation

  2. Run docker compose in the terminal (this project root)

sudo docker compose up
# (maybe `docker-compose`)
# If you dont want to see the console, run: 
sudo docker compose up -d
  1. To stop it, run:
sudo docker compose down
  1. To see all docker instances, run:
sudo docker ps

Python Virtual Environment Setup

  1. Create a virtual environment:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

Running Flask

  1. Start the Flask development server:
flask run --app web_app run
  1. Debug mode:
flask run --app web_app run --debug
  1. Init dummy DB data:
flask run --app web_app init-db

The application will be available at http://localhost:5000

Testing with pytest

  1. Make sure your virtual environment is activated and Mongo is running
  2. Run all tests:
pytest
  1. Run specific test file:
pytest tests/test_filename.py
  1. Run specific test file and disable warnings:
pytest tests/test_filename.py --disable-warnings

Style Guidelines

Adding Header

{% extends "base.html" %}
{% block title %}Statistiken{% endblock %}
{% block subHeader %}Kursbelegung{% endblock %}
{% block header %}Verfügbare Kurse{% endblock %}


{% block body %}
    ...your code...
{% endblock %}

Additional

This project was part of a group project in 'Hochschule Kempten'. Developed by: Michael Stöhr, Cedric DeJarnatt, Samuel Käufler, Leon Baur, Matthias Steger, Julian Wirth

About

CozyCourse is a powerful web application for managing courses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors