Coder Social home page Coder Social logo

menty44 / bank-account Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raiomido/bank-account

0.0 2.0 0.0 12.64 MB

Coding test by Pezesha

License: MIT License

PHP 95.06% Shell 0.64% ApacheConf 0.18% CSS 0.67% JavaScript 0.52% Vue 0.18% HTML 2.74%

bank-account's Introduction

Bank Account Manager

The bank account manager application project I built for my coding test from Pezesha

Deployment

First, to see the application in action you will need to set up a database and configure the application as follows

Create a database called bank, with table transactions with the following columns

id - (an autoincreamenting id also set as primary key)
amount (decimal 10,2)
type (small integer) -an integer to specify whether deposit/withdrawal
count(small integer)increamented to determine if max allowed transactions
date (date) not timestamp
created_at (timestamp)
updated_at (timestamp)

###Or simply run the folowing sql queries

CREATE DATABASE IF NOT EXISTS `bank` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;

CREATE USER 'bankadmin'@'localhost' IDENTIFIED BY PASSWORD 'hackerGuru2017';

GRANT ALL PRIVILEGES ON `bank`.* TO 'bankadmin'@'localhost' WITH GRANT OPTION;

USE `bank`;

CREATE TABLE IF NOT EXISTS `transactions` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `amount` decimal(10,2) NOT NULL,
  `type` smallint(1) NOT NULL,
  `count` smallint(1) NOT NULL,
  `date` date NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Update the .env file in the project root with your database credentials if you used something different.

If using virtual hosts, you might want to specify the root folder as appdirectory/public

Also ensure you update the APP_URL correctly in the .env file. e.g. on windows you might have

http://localhost/bank

Prerequisites

The application stores data in a database. The database used is mysql.

Built With

  • Laravel - Laravel 5.4 framework
  • apache running on apache on Linux Mint KDE
  • composer Dependency Management

bank-account's People

Contributors

raiomido avatar

Watchers

Fredrick Oluoch 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.