Welcome to the LWTech capstone project! The idea of this project is to create a game world that players can interact with programmatically to improve their programming ability while having fun.
This project is in it's early stages so keep an eye out for future improvements!
Running the following commands will install the dependencies for the project.
python -m pip install flask pymongo[srv]
You need a db.config
file containing a MongoDB connection string in the top level of the project so the app can load the database.
If you are getting an error like "File db.config" does not exist this is why.
Use these commands to start the Flask server. Running the server in development mode like shown here will reload the server when changes are made.
If you just installed flask this is the option to choose.
python -m flask --debug run
If you're using an older version of flask you have to set some environment variables first.
set FLASK_APP=app.py
set FLASK_ENV=development
python -m flask run
$env:FLASK_APP = "app.py"
$env:FLASK_ENV = "development
python -m flask run
export FLASK_APP=app.py
export FLASK_ENV=development
python -m flask run