https://github.com/tjeufoolen/mastermind
The popular game Mastermind rebuild using python and flask
https://github.com/tjeufoolen/mastermind
flask flask-wtf game jinja mastermind python
Last synced: 3 months ago
JSON representation
The popular game Mastermind rebuild using python and flask
- Host: GitHub
- URL: https://github.com/tjeufoolen/mastermind
- Owner: tjeufoolen
- Created: 2020-03-05T09:18:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T16:24:43.000Z (over 1 year ago)
- Last Synced: 2025-02-07T00:47:32.860Z (5 months ago)
- Topics: flask, flask-wtf, game, jinja, mastermind, python
- Language: HTML
- Homepage:
- Size: 1.6 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mastermind
The popular game Mastermind rebuild using python and flask## Prerequisites
- virtualenvironment (venv)
- pip packages
- Flask
- Flask-WTF
- python-dotenv## Getting Started
1. Clone this repository.
2. Create a `mastermind.db` file inside the `storage` folder.
3. Execute the sql from `storage/mastermind.sql` onto the `mastermind.db` you just created.
4. Copy and rename `.env.example` to `.env`.
5. Fill in your credentials inside the `.env`.
6. Run the flask program. (For tips on how to checkout the #Development tips below)
7. Enjoy! :tada:
## Development tips
To enable automatic rebuilding on code change, set the current flask app to run in a dev environment.
See the code examples below for more information on how to set this up on windows or unix.**Unix**
```
export FLASK_APP=app.py
export FLASK_ENV=development
flask run
```**Windows**
```
set FLASK_APP=app.py
set FLASK_ENV=development
flask run
```## Authors
- [Micha Nijenhof](https://github.com/killermi200)
- [Tjeu Foolen](https://github.com/tjeufoolen)