Coder Social home page Coder Social logo

iamamarpal / fsnd-flask-social-network Goto Github PK

View Code? Open in Web Editor NEW

This project forked from louismagdaleno/fsnd-flask-social-network

0.0 1.0 0.0 247 KB

Final project for Udacity's full stack nanodegree section on building a flask application.

License: MIT License

Python 59.08% CSS 4.60% HTML 36.32%

fsnd-flask-social-network's Introduction

license

Udacity logo svg

Social Network

Technologies Used

  • Python
  • Flask
  • SQLAlchemy
  • Google oAuth 2.0
  • Flask-Dance
  • pip-env
  • git

Screens

Landing Page

landing_page

OAuth

oauth

Sign In

sign_in

Sign Up

sign_up

Update Profile

update_profile

API

api

Create Post

create_post

Logged In - View Posts

logged_in

Key Ideas

  • MVC Design Pattern.
  • Separation of concerns.
  • Scalable application design.
  • OAuth.
  • Flask, SQLAlchemy, and extensions.

Design and Architecture

This application is organized around a MVC pattern.

.
├── config
└── socialnetwork
    ├── utils
    ├── models      # Model
    ├── routes      # Controller
    ├── templates   # View
    ├── forms
    └── static
.
├── config                      
│   └── settings.py           
├── socialnetwork
│   ├── socialnetwprk.db    # db object
│   ├── forms
│   │   └── post.py           # create posts
|   |   └── user.py           # registration, login, update user
│   ├── models
│   │   ├── post.py           
│   │   └── user.py
│   ├── routes
│   │   ├── account.py
│   │   ├── errorhandlers.py
│   │   ├── post.py
│   │   ├── main.py           
│   │   └── userauth.py       # Flashes a signal/instance of blueprint and token via Flask-Dance.
│   ├── services
│   ├── static
│   │   ├── img
│   │   │   └── google.png
|   |   ├── profile_pics
│   │   │   └── default_profile.png      
│   │   └── styles
│   │       └── main.css
│   └── templates             #  Responsive bootstrap 
│       ├── errors
│       │   ├── 403.html      # Error handlers
│       │   ├── 404.html
│       │   └── 500.html
│       ├── account.html
│       ├── layout.html
│       ├── login.html
│       ├── main.html
│       ├── post.html
│       └── register.html
├── manage.py
└── requirements.txt
└── .env

API

{URI}/api/v1/posts/json

Installation

Requirements

How to run the project

Download this project to your computer
cd src/web
virtualenv ENV
source env/scripts/activate
pip install -r requirements.txt
export FLASK_APP=manage.py
flask run
# Navigate to http://127.0.0.1:5000/

(Back to top)

fsnd-flask-social-network's People

Contributors

louismagdaleno avatar

Watchers

James Cloos 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.