This is a Flask-based web application for reserving workspaces. It uses SQLAlchemy for database operations, Flask-Admin for administrative interfaces, and Flask-BasicAuth for authentication.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python 3.6+
- pip
- Virtualenv
- Clone the repository:
git clone https://github.com/yourusername/workspace_reservation_app.git
- Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Set the FLASK_APP environment variable:
export FLASK_APP=app
- Run the application:
flask run
- Alternatively, you can use Gunicorn to run the application:
gunicorn 'app:create_app()'
Once the server is running, navigate to http://localhost:5000
in your web browser. You can start reserving workspaces by creating an account and logging in.
The application's configuration is located in config.py
. You can modify this file to change the application's settings.
In the create_app
function in __init__.py
, the application is configured to use basic authentication with the username and password both set to 'admin'. You can change these values to something more secure.
Please read CONTRIBUTING.md
for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md
file for details.