FruitCastle is a web application built with Flask and Python intended to act as a common backend service for hosting data that is will be used by various cross-platform and web applications.
https://fruitcastle.herokuapp.com/
Clone the repo to your computer, execute to the following commands in CMD or Bash:
git clone https://github.com/brownboycodes/FruitCastle.git
access the downloaded directory 📁:
cd FruitCastle
setup virtual environment for Python 🐍:
py -3 -m venv venv
activate virtual environment:
venv\Scripts\activate
install packages 📦 required by the flask app 🐍:
pip install -r requirements.txt
To test the server in dev mode
👨💻, create a file, for example- run_dev_mode.py
and paste the following code 🐍:
from src.fruit_castle.main import app, socketio
from src.fruit_castle.hadwin.v3.v3_socket_events import *
if __name__ == "__main__":
app.config.update(
TESTING=True,
ENV='development',
)
if app.config['ENV'] == 'development':
from dotenv import load_dotenv
load_dotenv()
app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
socketio.run(app, host="0.0.0.0", port=5000, debug=True)
🎉 Now, start the server in development mode
🚀:
py run_dev_mode.py
FruitCastle © 2022 was developed by Nabhodipta Garai and is owned by him.