Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

teddykoker/bookflip

Repository files navigation

Logo

bookflip

Dependency Status Code Climate Build Status

Author

Tom Koker

Installing

Dependencies

Virtual Env:

sudo apt-get install python-pip
sudo pip install virtualenv

Node:

sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node

Webpack:

sudo npm install -g webpack

Installation

Clone and change directory:

git clone https://github.com/tomkoker/bookflip && cd bookflip

Create python virtual environment:

virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate

Install dependencies:

pip install -r requirements.txt
npm install

Create instance folder and config file:

mkdir instance && touch instance/config.py

Initialize database:

python init_db.py

Build and start the server:

webpack
python run.py

Private API Documentation

Responses All responses will look like the following:

{
    "status": "success", // 'error' or 'fail'
    "data": {...}
}

Routes

Location Input Description
/api/signup username, password, email Creates a new user
/api/activate/<payload> Activates user
/api/login/ username, password Logs in user
/api/logout/ Logs out user
/api/me/ Returns user status
POST: /api/listings/ listing Creates a new listing
GET: /api/listings/ Shows all listings

License

AGPL-3.0

About

Textbook trading website built with Flask and Vue.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published