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.
- Clone the repo
$ git clone https://github.com/jygh98/eShop.git
$ cd eShop
- Initialize and activate a virtualenv:
$ virtualenv --no-site-packages env
$ source env/bin/activate
- Install the dependencies:
$ pip install -r requirements.txt
- Run the development server:
$ python code/app.py
- Navigate to http://127.0.0.1:5000
- Signup for Heroku
- Login to Heroku and download the Heroku Toolbelt
- 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
-
Activate your virtualenv
-
Create a local Git repository (if necessary):
$ git init
$ git add .
$ git commit -m "initial files"
- Create your app on Heroku:
$ heroku create <name_it_if_you_want>
- Deploy your code to Heroku:
$ git push heroku master
- View the app in your browser:
$ heroku open
- Having problems? Look at the Heroku error log:
$ heroku logs