An Udacity fullstack project, to implement the backend features with minimal client side dependency.
- Download the project starter code locally
git clone https://github.com/izudada/fyyur.git
- Create an empty repository in your Github account online. To change the remote repository path in your local repository, use the commands below:
git remote -v
git remote remove origin
git remote add origin <https://github.com/<USERNAME>/<REPO_NAME>.git>
git branch -M master
Once you have finished editing your code, you can push the local repository to your Github account using the following commands.
git add . --all
git commit -m "your comment"
git push -u origin master
- Initialize and activate a virtualenv using:
python -m virtualenv env
source env/bin/activate
Note - In Windows, the
env
does not have abin
directory. Therefore, you'd use the analogous command shown below:
source env/Scripts/activate
- Install the dependencies:
pip install -r requirements.txt
- Run the development server:
export FLASK_APP=myapp
export FLASK_ENV=development # enables debug mode
python3 app.py
- Verify on the Browser
Navigate to project homepage http://127.0.0.1:5000/ or http://localhost:5000