GithubHelp home page GithubHelp logo

code-cubicles's Introduction

Code-Cubicles

Team - Top_Secret

EasyPay Payments App

WEB APP LINK

๐Ÿง Features

Here're some of the project's best features:

  • You can add multiple bank accounts
  • make transactions from accounts
  • track your transaction history across accounts

๐Ÿ› ๏ธ Installation Steps:

Fork this repository

1. BACKEND

cd Backend
npm install
node server.js

2. FRONTEND

cd Frontend
npm install
npm run dev

๐Ÿ’ป Built with

MERN Stack

Technologies used in the project:

  • React
  • Express
  • JWT
  • MUI

Process Flow

  1. Frontend (React)

App.jsx: The main component, App.jsx, renders different components (SendMoney.jsx, Login.jsx, Signup.jsx) based on the routes defined using React Router. Component Example (SendMoney.jsx): This component makes an API call to the backend to send money.

  1. Backend (Node.js/Express)

server.js: Creates an Express app. Configures environment variables. Connects to MongoDB using connectToDb. Sets up routes.

db.js: Contains the function to connect to MongoDB.

  1. Routes

account-route.js: Defines routes related to account operations and links them to controllers.

auth-route.js: Defines authentication routes.

transaction-route.js: Defines transaction-related routes.

  1. Controllers

addBank-controller.js: Contains logic for adding a bank account.

auth-controller.js: Handles user authentication.

transaction-controller.js: Manages transactions.

  1. Models

account-model.js: Defines the schema for the Account model.

user-model.js: Defines the schema for the User model.

transaction-model.js: Defines the schema for the Transaction model.

  1. Middleware

authMiddleware.js: Verifies if the user is authenticated by checking the JWT token.

Summary:
Frontend: The React app's components (SendMoney.jsx, Login.jsx, Signup.jsx) make API calls to the backend Express server.
Backend: The Express server (server.js) routes these requests to specific route handlers (account-route.js, auth-route.js, transaction-route.js).
Controllers: The route handlers invoke controller functions (addBank-controller.js, auth-controller.js, transaction-controller.js) that contain the business logic.
Database: Controllers interact with MongoDB via Mongoose models (account-model.js, transaction-model.js, user-model.js).
Middleware: Middleware (authMiddleware.js) ensures the user is authenticated before accessing protected routes.
Response: The server processes the request, interacts with the database if needed, and sends a response back to the React frontend, which updates the UI accordingly.

code-cubicles's People

Contributors

muke0131 avatar krishangmain avatar

Watchers

 avatar

Forkers

krishangmain

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.