Coder Social home page Coder Social logo

vermontaholic's Introduction

Vermontaholic

vermontaholic's People

Contributors

adcar avatar pchapin avatar rooplespooples avatar silas730 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

vermontaholic's Issues

Connect to mySQL from Python

Get MySQL access and connect to it from Python. Create a new database in MySQL and decide how the schema should look

Create API using Flask

Create an API in Flask with the endpoints listed in #4. If anything is unintuitive / badly designed in the endpoint list feel free to adjust the endpoints accordingly.

Figure out API endpoints by creating a skeleton for the font-end

GET /towns/<user> - returns all towns in Vermont and the status of if they are visited by the user or not. JSON should look something like this:

[
{name: "Colchester", isVisited: "false"},
{name: "Essex", isVisited: "true"},
...
]

POST /<user>/visit/<town>/<date/time> - mark a town as visited for a particular user (auth required)
POST /<user>/addPicture/<town> - the POST body that the UI sends over will contain a base64 encoded version of the image as well as any comments (auth required)

POST /signup/<username>/<password> - Hash this password and store it with the username in the database
POST /login/<username>/<password> - Should return a user token

Authentication:

Every endpoint that requires authentication will mean the POST request will contain a user token. If this user token is not valid then respond with an error.

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.