Skip to content

jygh98/eShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eShop

A simplified version of eBay where users are able to view, create, update, and delete item listings within a store. This project is meant to demonstrate the use of REST APIs and how a web application is built from scratch.

The project implements the following additional features:

  • User authentication and logging
  • SQLite3 database
  • Heroku deployment

Note: Currently no web interface has been implemented yet. Therefore to make HTTP requests to the application, Postman is used for interacting and testing.


Quick Start

  1. Clone the repo
$ git clone https://github.com/jygh98/eShop.git
$ cd eShop
  1. Initialize and activate a virtualenv:
$ virtualenv --no-site-packages env
$ source env/bin/activate
  1. Install the dependencies:
$ pip install -r requirements.txt
  1. Run the development server:
$ python code/app.py
  1. Navigate to http://127.0.0.1:5000

Deploying to Heroku

  1. Signup for Heroku
  2. Login to Heroku and download the Heroku Toolbelt
  3. Once installed, open your command-line and run the following command - heroku login. Then follow the prompts:
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
Could not find an existing public key.
Would you like to generate one? [Yn]
Generating new SSH public key.
Uploading ssh public key /Users/michaelherman/.ssh/id_rsa.pub
  1. Activate your virtualenv

  2. Create a local Git repository (if necessary):

$ git init
$ git add .
$ git commit -m "initial files"
  1. Create your app on Heroku:
$ heroku create <name_it_if_you_want>
  1. Deploy your code to Heroku:
$ git push heroku master
  1. View the app in your browser:
$ heroku open
  1. Having problems? Look at the Heroku error log:
$ heroku logs

About

A simple REST API backend using Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages