Udacity: Difference between revisions

From Wiki RB4
Line 37: Line 37:
* https://github.com/WenkaiTan/FSND/tree/master/projects/01_fyyur/starter_code
* https://github.com/WenkaiTan/FSND/tree/master/projects/01_fyyur/starter_code
* https://github.com/saelsa/fyyur
* https://github.com/saelsa/fyyur
* https://github.com/brunogarcia/fyyur-artist-booking solution
* [https://github.com/brunogarcia/fyyur-artist-booking fyyur-artist-booking-master.zip]

Revision as of 12:24, 20 October 2021

Courses

Full Stack Web Developer

  • C:\Uwes\python\UdacityFullWebDeveloper

ToDo App

Fyyur App

  • run as prepartion (rest was already installed for lesson)
pip3 install virtualenv
npm install bootstrap@3
// creating .env file for VSC debugging
  • execute Development Setup from GitHub
  • with psql
create database fyyur;
create user fyyur with encrypted password 'fyyur';
grant all privileges on database fyyur to fyyur;
  • in C:\Uwes\python\UdacityFullWebDeveloper\FSND\projects\01_fyyur\starter_code
python -m virtualenv env
  • to run the app
C:\Uwes\python\UdacityFullWebDeveloper\FSND\projects\01_fyyur\starter_code>.\env\Scripts\activate
pip install Flask-migrate // one-time
pip3 install psycopg2 // one-time
flask db init // one-time
flask db migrate // if needed
C:\Uwes\python\UdacityFullWebDeveloper\FSND\projects\01_fyyur\starter_code>.\env\Scripts\activate
#$env:FLASK_ENV = "development" // moved to .env file
python .\app.py
http://127.0.0.1:5000/
Origin
Solutions