Git Product home page Git Product logo

bookswapp's Introduction

Bookswapp

Textbook trading marketplace web app backend for COMP4920

Front-end

AngularJS front-end project is hosted at: https://github.com/mlux9/app-front

API details

https://docs.google.com/document/d/1W6OSjiO2Ia2rvqzSiSrmi2W0Yf7MdHPWsrbcks579mw/mobilebasic

Setup

sudo apt-get install libmysqlclient-dev
sudo pip3 install virtualenv
cd /path/to/project/folder
virtualenv -p python3 venv (http://docs.python-guide.org/en/latest/dev/virtualenvs/)
source venv/bin/activate
pip3 install -r requirements.txt
...Work...
deactivate

Activate file

Add 'FLASK_APP=app.py' and 'FLASK_DEBUG=1' to the bottom of the file

Flask API

http://bookswapp.apps.mlux.me

bookswapp's People

Contributors

mlux9 avatar alexnguyennn avatar adriangroch avatar quas94 avatar

Watchers

 avatar  avatar  avatar  avatar

bookswapp's Issues

Accept/Reject prompt for user

Give user option to accept or reject a potential match
Send an email to nominated address for mvp; expand when user profiles are introduced

add_book mySQL error

Don't think it was fixed, this is the error I get

_mysql_exceptions.IntegrityError: (1062, "Duplicate entry '0' for key 'PRIMARY'")

Complete Project Plan

Everyone pitch in to hand in a formal project plan document on Sunday!
Same roles as for the presentation.

Change 'Book_List' table in DB

book_id is unique while user_id column can have the same values
Can't have multiple book listings from same user right now due to this

Textbook transaction (Sell/post wanted book)

User needs to be able to carry a sale transaction from start to finish.
This includes: Post their book for sale/Post a book they are looking for (and related details), be notified when someone is interested in satisfying need (buying/selling) and interface option to accept or decline an offer.
Finally, a match page to reveal relevant details to meet and trade books.

End of add_book function

At the end of the add_book function on this line
return status.HTTP_201_CREATED

There is an error that says the 'str' object does not have attribute 'HTTP_201_CREATED'

I have it commented out right now but not sure why it's giving that error (have the same line working fine elsewhere)

Navigate book inventory

Users can find and inspect all available books from the landing page to locate a book they need or see which books other people are after.
Users have a central page to explore future features (add, swap, search books, indicate interest)

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.