Giter Site home page Giter Site logo

suhail72 / paytm-like-website Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 128 KB

PayTM-Like Web App A full-featured web application developed using the MERN stack, designed to simulate the functionality of PayTM. This app supports user registration, authentication, and secure banking transactions. Built with modern tools and technologies such as React with Vite, Tailwind CSS for styling

JavaScript 97.84% HTML 1.86% CSS 0.30%

paytm-like-website's Introduction

PayTM-Like Web App

Table of Contents

  1. Introduction
  2. Features
  3. Technologies Used
  4. Installation
  5. Usage
  6. API Endpoints
  7. Contributing
  8. License

Introduction

This project is a PayTM-like web application developed using the MERN stack (MongoDB, Express, React, Node.js). It provides functionalities similar to real-world banking transactions, featuring robust user authentication, session-based transactions, and an attractive user interface. The application ensures data integrity and security using tools such as JWT for authentication and Zod for validation.

Features

  • User Registration and Authentication
  • Secure Transactions using Mongoose Sessions
  • Real-time Transaction Updates
  • Responsive and Attractive UI
  • State Management in React
  • API Integration using Axios

Technologies Used

  • Frontend:
  • React.js with Vite
  • Tailwind CSS for styling
  • Axios
  • React State Management Tools
  • Backend:
  • Node.js
  • Express.js
  • MongoDB with Mongoose
  • Libraries and Tools:
  • Zod for validation
  • JWT for authentication

Installation

Prerequisites

  • Node.js (v14 or higher)
  • MongoDB

Clone the Repository

git clone https://github.com/Suhail72/paytm-like-website.git

	cd PayTM-Project

Backend Setup

  1. Navigate to the backend directory:

cd backend

  1. Install dependencies:

     npm install
    
  2. Set up environment variables:

Create a config.js file in the backend directory and add the following

module.export ={  
JWT_SECRET=your_jwt_secret}
  1. Start the backend server:

     npm start
    

Frontend Setup

  1. Navigate to the frontend directory:

    cd ../frontend
    
  2. Install dependencies:

     npm install
    
  3. Start the frontend server using Vite:

     npm run dev
    

Usage

  1. Open your browser and navigate to http://localhost:3000 for the frontend.
  2. Use Postman or similar tools to interact with the backend at http://localhost:5000 for API testing.

API Endpoints

User Authentication

  • Register
  • POST /api/v1/signup
  • Body: { "firstName": "string", lastName:string, "email": "string", "password": "string" }
  • Login
  • POST /api/v1/user/signin
  • Body: { "email": "string", "password": "string" }

Transactions

  • Create Transaction
  • POST /api/transactions
  • Headers: Authorization: Bearer <token>
  • Body: { "amount": "number", "type": "string" }
  • Get Balance
  • GET /api/user/balance
  • Headers: Authorization: Bearer <token>

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a pull request.

License

This project is licensed under the MIT License — see the LICENSE file for details.PayTM-Like Web App

paytm-like-website's People

Contributors

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