Coder Social home page Coder Social logo

mern-pdf's Introduction

MERN PDF Store App

App Screenshot

Table of Contents

Overview

This is a web application built using the MERN (MongoDB, Express.js, React, Node.js) stack. The primary purpose of this app is to sell a PDF file to users. Only users with successful PayPal payments will be allowed to download the PDF file.

Features

  • User-friendly interface.
  • Secure payment processing through PayPal.
  • Instant PDF download upon successful payment.
  • Integration of Tailwind CSS for responsive and attractive styling.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed.
  • MongoDB set up and running.
  • PayPal developer account for API integration.

Installation

  1. Clone the repository:

    git clone https://github.com/lateefibrahim01/mern-pdf.git
    cd mern-pdf
    
  2. Install server dependencies: cd server npm install

  3. Install client dependencies: cd client npm install

  4. Create a .env file in the server directory and make use of .env.sample

  5. Start the server and client:

    npm start (server directory)

    npm start (client directory)

Usage

  • Access the app in your browser at http://localhost:3000.
  • select the PDF file.
  • Click the "Buy Now" button to proceed with the payment.
  • Complete the PayPal payment process.
  • Upon successful payment, the PDF file will be available for download.

Payment Process

This app uses PayPal for payment processing. When a user clicks "Buy Now," they will be redirected to the PayPal checkout page. After successful payment, PayPal will send a confirmation to the server, and the user will be granted access to download the PDF file.

Tailwind CSS

This project utilizes Tailwind CSS for styling. You can customize the styles by modifying the Tailwind configuration files in the client directory.

License

This project is licensed under the MIT License.

mern-pdf's People

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.