Coder Social home page Coder Social logo

tjeufoolen / mastermind Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.64 MB

The popular game Mastermind rebuild using python and flask

HTML 43.64% CSS 11.52% Python 36.75% PLpgSQL 2.61% JavaScript 5.49%
python flask mastermind game jinja flask-wtf

mastermind's Introduction

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! ๐ŸŽ‰

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

mastermind's People

Contributors

tjeufoolen avatar nijenhof avatar

Watchers

 avatar  avatar

Forkers

nijenhof

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.