This is a Banking application made for Task 1 of GRIP(Graduate Rotational Internship Program) under The Sparks Foundation.
This Full Stack application is made using
- Postgres SQL
- ExpressJS
- ReactJS
- NodeJS
The project is hosted using heroku, here.
Checkout this same project made using Firebase and the backend on github here hosted using firebase here
- Install PostgreSQL.
- create a new database.
CREATE DATABASE bank;
- create new tables in that database.
CREATE TABLE customers(
c_id SERIAL PRIMARY KEY,
name VARCHAR(255),
email VARCHAR(255),
balance FLOAT
);
CREATE TABLE transfers(
t_id SERIAL PRIMARY KEY,
sender VARCHAR(255),
receiver VARCHAR(255),
transfer_amount FLOAT
);
- Add mock data to the customers table.
- create a .env file in the source folder of the project with the following enviornment variables.
PG_USER = postgres
PG_PASSWORD = <password of the postgres user>
PG_HOST = localhost
PG_PORT = 5432
PG_DATABASE = bank
- run
npm install
in the root folder as well as the frontend folder. - run
node index
in the root folder to start the backend onhttp://localhost:5000
. - run
npm start
in the frontend folder to start the react frontend athttp://localhost:3000
.