Coder Social home page Coder Social logo

udacity-fsnd-item-catalog's Introduction

Udacity's fsnd Item Catalog project!

A web application that provides a list of items within a variety of categories and integrate third party user registration and authentication.

Project structure

directory Description
app Contains all the application initialization logic.
auth App that handles user authentication and authorization.
catalog App that handles the catalog CRUD logic.
static contains the app stylesheets and JS scripts.
templates contains the jinja2 templates.

Usage

Download and setup the VM:

git clone https://github.com/udacity/fullstack-nanodegree-vm  
cd fullstack-nanodegree-vm/vagrant/  
vagrant up
vagrant ssh
# Now clone this repo
git clone https://github.com/HassenPy/udacity-fsnd-project-3
# Create the databases:  
psql -f commands.sql

Create the facebook app:

You need to create a facebook app for the facebook login/signup to work:
1- Go to https://developers.facebook.com
2- Add a new app
3- Click on facebook login and choose setup.
4- Choose the web option.
5- For the domain option put: http://localhost:8000/
6- now go to facebook login settings and add http://localhost:8000/login and http://localhost:8000/ to the Valid OAuth redirect URIs" option and save.
7- In the app directory, make a file fb_app.json that has this structure:
{ "id": "your_app_id", "secret": "your_app_secret" }

Running the app:

First you need to install the dependencies:
pip3 install -r requirements.txt

Create an environment variable for the SECRET_KEY and FLASK_APP:
export SECRET_KEY='secret_key';
export FLASK_APP='run.py';

Test the app: python test.py

Run the app: flask run -h 0.0.0.0 -p 8000

udacity-fsnd-item-catalog's People

Contributors

hassenpy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

udacity-fsnd-item-catalog's Issues

email?

Hey Hassen, it's Hassen.

We talked a few years ago but I lost your email. Could you please reach out via my gmail or on this thread?

I'm in Tunis btw.

Talk soon.

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.