Skip to content

Files

Latest commit

3b65095 · Sep 17, 2023

History

History
108 lines (74 loc) · 2.9 KB

README.md

File metadata and controls

108 lines (74 loc) · 2.9 KB

Course Selling App Template

Welcome to the Course Selling App! This is a web application built with React for the frontend, Recoil for state management, MongoDB as the database, and Node.js for the backend server. This app allows you to browse and purchase a wide range of courses, making learning a breeze.

Table of Contents

Features

  • Browse a diverse selection of courses.
  • Search and filter courses by category, level, and more.
  • View course details, including descriptions, instructors, and pricing.
  • User authentication and profile management.
  • Admin panel for course and user management.
  • Responsive design for seamless mobile and desktop experiences.

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

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

  • Node.js installed.
  • MongoDB installed and running locally or on a remote server.
  • Git installed (optional).

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/course-selling-app.git

    Or download and extract the ZIP file from GitHub.

  2. Navigate to the project directory:

    cd course-selling-app
  3. Install the frontend and backend dependencies:

    # Install frontend dependencies
    cd client
    npm install
    
    # Install backend dependencies
    cd ../server
    npm install
  4. Create a .env file in the server directory and configure your environment variables:

    PORT=3000
    MONGODB_URL= your mongo db client url
    JWT_SECRET=your-secret-key

    Replace your-secret-key with a secure key for JWT authentication.

Usage

  1. Start the backend server:

    cd server
    npm start
  2. Start the frontend development server:

    cd client
    npm start
  3. Open your web browser and navigate to http://localhost:3000 to access the Course Selling App.

  4. Use the app to explore courses, add them to your cart, and complete the checkout process.

Technologies Used

  • React - Frontend JavaScript library
  • Recoil - State management for React
  • Node.js - JavaScript runtime for the backend
  • MongoDB - NoSQL database
  • Express - Node.js web application framework
  • JWT - JSON Web Tokens for authentication

License

This project is licensed under the MIT License.