Skip to content

Sharathjonnala2003/Entrepreneurship-Courses

Repository files navigation

Entrepreneurship Courses Web Application

A modern web application for entrepreneurship courses built with React, Node.js, Express, and SQLite3.

Features

  • Modern, responsive UI design
  • Browse courses by category
  • Course details and enrollment
  • User authentication (login/signup)
  • Admin dashboard for course management
  • RESTful API with Express
  • SQLite3 database for persistence

Tech Stack

  • Frontend: React, React Router, Axios, Styled Components, Vite
  • Backend: Node.js, Express
  • Database: SQLite3
  • Authentication: JWT, bcrypt

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm (v6 or later)

Installation and Setup

  1. Clone the repository
  2. Install dependencies for all parts of the project:
npm run install-all
  1. Set up the database and create initial admin user:
npm run setup-db

This will create the SQLite database with tables and a default admin user with these credentials:

Development

To run both the client and server in development mode:

npm run dev

Production

To build the client for production:

npm run build

To start the server in production mode:

npm start

Project Structure

entrepreneurship-courses/
├── client/               # Frontend React application
│   ├── public/           # Static files
│   └── src/              # React components and styles
│       ├── components/   # Reusable components
│       └── pages/        # Page components
├── server/               # Backend Express server
│   ├── db/               # SQLite database
│   └── routes/           # API routes
└── README.md             # Project documentation

API Endpoints

  • GET /api/courses - Get all courses
  • GET /api/courses/:id - Get a specific course
  • POST /api/courses - Create a new course (admin only)
  • PUT /api/courses/:id - Update a course (admin only)
  • DELETE /api/courses/:id - Delete a course (admin only)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages