Giter Club home page Giter Club logo

fyyur's Introduction

Fyyur ๐Ÿ”ฅ

Documentation Maintenance License: MIT Twitter: JavierFeliuA

Fyyur is the first project for the 2019 Udacity Full-stack Developer Nanodegree. The project is associated to the SQL and Data Modeling for the Web course. The starter code and project instructions can be found here.

How to use

Note: A 2-minute video showing all the steps below is available here.

  1. Clone the repository and cd into the project directory:
git clone https://github.com/wanderindev/fyyur.git
cd fyyur
  1. Deploy a Postgresql instance and create a database named fyyur. There are two options for this step:

    a. Use a local or remote Postgresql server and create the database there. In this case, just open config.py and modify SQLALCHEMY_DATABASE_URI to point to the correct database.

    b. The other option is to run the included Dockerfile and docker-compose.yml to create a Postgresql container with the database already set up. You would need to have docker and docker-compose already installed and configured, and follow these steps:

    • CD into the postgresql directory:
    cd postgresql
    • Run the following command:
    docker-compose up --build
  2. Open a new terminal windows, letting the container run in the original terminal windows. In the new terminal window, cd into the project root:

cd fyyur
  1. Create and activate a virtual environment:
python3 -m venv venv
. venv/bin/activate
  1. Install the project requirements:
pip install -r requirements.txt
  1. Upgrade the database:
flask db upgrade
  1. Run the application:
export FLASK_APP=run
flask run

Configuration

Configuration values are located in config.py. If using a database other than the instance running in Docker, the connection string can be modified there.

Upon the first request, the application will populate the database with fake data. This feature can be turn off changing the value for POPULATE_DB in config.py to False.

References

Effective Python by Brett Slatkin

Flask Web Development by Miguel Grinberg

Essential SQLAlchemy by Jason Myers and Rick Copeland

Author

๐Ÿ‘ค Javier Feliu

Starter code provided by Udacity.

Show your support

Give a โญ๏ธ if this project helped you!

๐Ÿ“ License

Copyright ยฉ 2019 Javier Feliu.

This project is MIT licensed.


I based this README on a template generated with โค๏ธ by readme-md-generator

fyyur's People

Contributors

wanderindev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.