Giter Club home page Giter Club logo

python-minicamp-homework-4's Introduction

Homework #4 -

Instructions


  1. Install Git here.

  2. Create a Github account - it's free.

  3. Fork this repo and clone it to your computer using the terminal command git clone <url>. Navigate into the cloned folder and build your homework project there.

  4. As you make changes and decide to commit your code follow these commands:

    git status //You'll see all of the files you've changed show up in red
    git add --all //this command stages all of your changes for commit
    git status //All of the red files should now be green
    git commit -m "<your commit message here>" //this commits your changes
    git status //All of the file names should no longer appear
    git push origin master //This pushes your changes up to the cloud
    
  5. Setup your virtual environment and build a simple Flask API with three routes:

    • (/) - This route should return your base HTML file.
    • (/movie) - This route should accept a POST request and save some info about a movie to your sqlite database.
    • (/movies) - This route will return the JSON for all movies in your database.
    • You can verify that you are successfully adding data by uploading your database file here.
  6. Create a /static folder with a /styles folder inside and a styles.css inside of the /styles folder. (/static/styles/styles.css) Create a /templates folder with a home.html file. Create a form to submit movie data to your API. Link the stylesheet to your home template and customize the look and feel of your application.


Extra Credit

  1. Add a (/search) route to retrieve a specific movie from the database. This will be very similar to the extra credit from the homework for day 3.

  2. Fork, clone and run Homework #3's solution branch in the repo. git pull origin solution

  3. Continue to play around with building your own routes and think of different ways you can interact with the database. We will be moving on to more client side coding after this and will be cloning down prebuilt servers for future homework assignments.


Congratulations on finishing Homework #4!

Apply to our full time or part time immersive program to learn cutting edge technologies that are used by top technology companies around the world.

Our part time and full time courses are 13 intense weeks of focused study on the most relevant technologies.

Class sizes are small to ensure that each student gets individual attention from our world class instructors to help them succeed.

For more information visit: www.lambdaschool.com

python-minicamp-homework-4's People

Contributors

sunjieming avatar

Stargazers

 avatar  avatar

Watchers

 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.