bharat-ahuja / Flask-Webapp

0 stars 1 forks source link

Issue setting up the app #3

Open Sicily-F opened 3 years ago

Sicily-F commented 3 years ago

Hi there,

This seems like a very interesting app which I was hoping to use, however I am having issue with the set up.

I cloned the repo, then I installed the requirements text and then I changed by directory to Flask-Webapp/webapp because the flask run command didn't work when I tried just in the Flask-Webapp directory.

However, then, I received this error code, and I have included the full traceback here:

bharat-ahuja commented 3 years ago

Hi there, greetings! Please run the following commands in order and try again:- $ export FLASK_ENV=development $ flask run

Sicily-F commented 3 years ago

Hi there,

So I managed to get given a link, but it says there is no application:

image

bharat-ahuja commented 3 years ago

Hi there, I can see that you're using the base environment. Once you've pip installed the requirements after creating a venv, activate the venv (Steps are given below):- Step 1. Change directory to root directory -> Flask-Webapp/ Step 2. use the following code $ python3 -m venv env $ source env/bin/activate $ pip install -r requirements.txt

Make sure you're in the root directory Flask-Webapp/ Use the following command (you've already set it to the development server in the previous step):- $ export FLASK_APP=run.py $ flask run

Thanks

Sicily-F commented 3 years ago

Hi there - it's still not working - same error codes as before - has it been tested on Windows systems?