Coder Social home page Coder Social logo

my-first-atm's Introduction

My First ATM

A small React app that mimics an ATM. The app talks to an Express stub that mimics a bank with a single user (account number 1234567890, PIN 4242). Possible interactions include authentication, checking balance, and withdrawing funds.

Getting Started

Install dependencies

npm install

Run back-end on port 3001

npm run start-server

Run client (in a new terminal)

npm run start-client

Once run successfully, the app can be accessed at http://localhost:3000. To start an interaction, simply click the card reader. This will "insert" the only card currently supported by the app. The card's PIN is 4242.

Server

All server code can be found in src/server. All data is read and written from src/server/db.json, which is re-seeded from src/server.dbSeed.json every time it is kicked off.

Supported requests:

POST /auth: check user PIN/account number GET /balance: check user's current balance PUT /balance: withdraw amount

my-first-atm's People

Contributors

probaton 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.