Code Monkey home page Code Monkey logo

course_catalog's Introduction

Course Catalog

A simple course catalog. Working example here: https://bay-course-catalog.herokuapp.com

Users can add courses and organize them by school and category.

Users are able to create accounts or log in through OAuth providers.

Item Catalog project for Udacity Full Stack Nanodegree, built with Flask framework, using Flask-SQLAlchemy.

Dependencies

Python 2.7.x

All other dependencies will be installed during setup below.

Installation

  1. Clone this repository to your local machine
  2. cd to course_catalog/course_catalog
  3. [Optional, but highly recommended] Create a new virtual environment using virtualenv.
virtualenv venv
. venv/bin/activate
  1. Run pip install --editable . This will install all needed dependencies.
  2. Create an instance directory to store database and configuration files:
mkdir instance
  1. Copy the default config file to the instance directory:
cp course_catalog/default_config.py instance/config.py
  1. Open the newly created config.py and add a SECRET_KEY as well as IDs and Secret Keys for all OAuth providers
  2. Start python in your terminal. Run the code below to create the database:
from course_catalog.course_catalog import *
init_db()
  1. Run the following in your command line to assign the flask app:
export FLASK_APP=course_catalog
  1. Turn on debug mode on development only. If it is production, turn this off (0):
export FLASK_DEBUG=1
  1. Start the application with flask run
  2. Open localhost:5000 in your browser

Testing

To run testing suite:

python tests/test_course_catalog.py

TODO

  • Add additional functionality.
  • Finetune this README file.
  • Add to the testing suite.

course_catalog's People

Contributors

byanofsky avatar

Stargazers

Peter Lee avatar

Watchers

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