Coder Social home page Coder Social logo

perimiter81's Introduction

Pizza delivery documentation

installation

This works in a swagger envronment

First install swagger on your environment. See https://www.npmjs.com/package/swagger

After cloning the git you should run the following commands:

  • npm install
  • swagger project start
  • swagger project edit . See the documentation there of how to run the api.

You can run the tests by swagger project test. Notice that server should be down while running the tests.

Some comments

Database

I used SqlLite3 in order to make it runnable without using a "serious" db server. In real life I would have used here mySql or mongo db.

I also did not add some general fields that I would in real world case like create_time and modified_time although it is really needed in this application if some real Pizza delivery will take it.

Unit tests

I would have improve and enhance them but I reached my time limit and I wasn't sure it is worthwhile.

Stripe

Stripe is supported on checkout service. I did not implemented the mailgun@com due to time limitations.

Login users

I implemented the login users on a server dictionary in memory. I know that it has the limitation that upon server restart all login users are erased. I would overcome this one by using persistent redis or adding a login flag to users table and loading this data on service raise. Again I did not implement that due to time limit.

perimiter81's People

Contributors

zvischutz avatar

Watchers

 avatar

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.