GithubHelp home page GithubHelp logo

betting_api's Introduction

betting_api

Simple RESTFUL API that allows users to interact with a betting contract -- There is no real money involve in this API is just fake number think of it like a simulation -- Uses express to interect s With a mongo DB database -- Will be use to make a web application -- Simple route Athutentication using JSON webtoken -- Implementation of Promise.All to deal with various Asynchronous operations -- If You wish to test please install the Package.json file and run it using PORT $4000 at the moment is better to use POSTMAN to interact with the end points since there is no front end for it

Routes

Contract Routes

Contract/login -- use for user to log in encryption and authentication provided
Contract/create -- use to create a new contract model
Contract/fetch_contracts -- returns  all current contracts 
Contract/delete_contract -- deletes a  contract 
Contract/join_contract -- user  is able  to join a contract
Contract/close_contract -- Admin use only here is where the contract  is close and money is redistributed

User Routes

User/fetch_users --returns all current  users
User/make_user -- use to create a new  user
User/update_emai  -- use to updtate users email
User/delete_user -- use to delete user
User/add_funds --  use to add FAKE money to user account
User/login -- use to log in same as the one in the Contract Routes

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.