A Flask application serving a React powered marketing dashboard.
- This project contains the necessary files for a deployment to a Google App Engine instance.
- The source code of the React app is available here.
This dashboard template is adapted from the the Gentelella bootstrap admin template by colorlib.
Click here to see the dashboard in action.
Python official doc on virtual environments
$git clone https://github.com/aminbouraiss/flask-dashboard.git
$cd flask-dashboard
$pip install -r requirements.txt
Launch the dev server with the following commands:
$export FLASK_APP=flask_app.py
$export FLASK_DEBUG=1
$flask run
The local server will be available at: Local: http://localhost:3000/ On Your Network: http://192.168.0.5:3000/
The full documentation is available here.
- Create a new GCP project and App Engine application using the GCP Console
- When prompted, select the region where you want your App Engine application located. After your App Engine application is created, the Dashboard opens.
- Download and install the Google Cloud SDK and then initialize the gcloud tool.
- go to the directory that contains project code.
- Install the project requirements with the following command:
$pip install -t lib -r requirements.txt
- Test the application using the local development server (dev_appserver.py), which is included with the SDK. start the local development server with the following command:
$dev_appserver.py app.yaml
- Visit http://localhost:8080/ in your web browser to view the app.
- You can deploy the final version of the app with the following command:
$gcloud app deploy