Skip to content

preethivi-raj/E-Learning-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Learning Platform

This is the README file for the E-Learning Platform. Below are the instructions to start the application in both production and development modes.

Live Website

You can access the live version of the application at E-Learning Website.

Running the App in Production Mode

To start the app in production mode (on a single port), follow these steps:

  1. Install Dependencies and Build the Application: Run the following command in the root directory of your project to install the necessary Node modules for both the backend and frontend and create the build file in the frontend:
npm run build
  1. Start the Application: After building the application, start the app using:
npm start

Running the App in Development Mode

To start the app in development mode, follow these steps:

  1. Start the Backend: In the root directory, run the following command to start both the backend and frontend in development mode:
npm run dev
  1. Start the Frontend Manually: If you prefer to start the frontend separately, navigate to the frontend directory and start the development server:
cd frontend
npm start
  1. Update the Base URL (for Development Mode):
    • Before running the frontend, make sure to update the base URL:
    • Go to the frontend/src/baseurl folder.
    • Change the base URL to http://localhost:5000/api in the respective file.

Additional Setup Requirements

JDoodle Compiler

To run the compiler, you need to create an account on JDoodle. and generate an API key. Save this API key in your application configuration to enable compiler functionality.

Refer jdoodle compiler api Documention

Cloudinary for Image Handling

To save images or photos, you need to create an account on Cloudinary and generate an API key. Configure your application with this API key to handle image uploads and management.

Refer cloudinary developer documentation

This README provides the necessary steps to get your application up and running, both in production and development environments.