Skip to content

This is a simple but useful web application made with the intention to help my fellow students and me to manage our shared washing machine which we will be using in our dormitory.

License

Notifications You must be signed in to change notification settings

georgi-m-iliev/LaundryMaster

Repository files navigation

LaundryMaster

Description

This is a simple but useful web application made with the intention to help my fellow students and me to manage our shared washing machine which we will be using in our dormitory.

Environment

This application is written in Python 3.11 and uses PostgreSQL as a database. The full list of dependencies can be found in the requirements.txt file. The app integrates a Celery worker and beat scheduler to handle asynchronous tasks, for which you would need to install Redis and start at least one worker and one scheduler.

Setting up the environment

  1. Install and set up your Python environment, PostgreSQL DBMS and Redis server.
  2. Clone this repository.
  3. Create a virtual environment by running python -m venv venv and activate it.
  4. Run pip install -r requirements.txt to install all the dependencies.
  5. Fill a copy of the .env.example files with your own values and rename it to .env.
  6. Migrate the database by running flask db migrate and then upgrade it by running flask db upgrade.
  7. You are ready to go! Run python main.py to start the application.

Usage

Open http://localhost:5000 in your favorite browser and enjoy!

Deployment

There are many ways to deploy a Flask app. The simplest one is to install gunicorn via pip install gunicorn and run the WSGI server with the following command gunicorn --workers 4 --bind 0.0.0.0:5000 main:app. Adjust the number of workers and the port to your needs.

Testing

This app comes with a set of tests which use pytest as a test runner. To run the tests install pytest and run pytest ./tests in the root directory of the project.

License

This project is licensed under the GNU GPLv3 License - see the LICENSE file for details.

About

This is a simple but useful web application made with the intention to help my fellow students and me to manage our shared washing machine which we will be using in our dormitory.

Resources

License

Stars

Watchers

Forks