Giter Club home page Giter Club logo

atm-restapis's Introduction

ATM - REST APIs

This repository consists of the basic functionalities for an ATM machine using Django.

Problem Statement:

Minimum Requirement :

  1. Create an API to register a user's card (8-digits) and ATM Pin (4-digits)

  2. Create an authentication API to validate the user by 8-digit card number and 4-digit ATM pin.

  3. Create an API to deposit the money in the user's account.

  4. Create an API to withdraw the money from the user's bank account.

NOTE: Keep the following things in considerations:

1- ATM Machine should always give the least number of notes (example: if the user withdraw Rs 2500, the ATM machine should give 1 note of Rs 2000 and 1 note of Rs 500)

2- The number of notes should be reduced/increase in ATM on every transaction.

3- The user cannot withdraw more than Rs 20,000 in one transaction.

Deployment

Setup

pip install -r requirements.txt

Run in dev

virtualenv venv
source venv/bin/activate
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver

Registering a User's card and pin

Screenshot from 2020-06-03 04-46-03

Validate Card number and pin

Screenshot from 2020-06-03 04-43-09

Making a Deposit

Screenshot from 2020-06-03 04-41-03

Withdrawing Money

Screenshot from 2020-06-03 04-39-37

atm-restapis's People

Contributors

namratavalecha avatar

Watchers

James Cloos avatar  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.