This project is based on the educational React course by SabzLearn. The backend has been provided exclusively by the SabzLearn Academy website, and the frontend has been developed by me. It is connected to a MySQL database and a Node.js backend. It has some issues that will be fixed in the future. This project will not be deployed! I designed it only for practice and to challenge myself.
- A fast development build tool for modern web projects.
- A high-level, interpreted programming language.
- A JavaScript library for building user interfaces.
- A standard library for routing in React applications.
- An open-source relational database management system.
- A JavaScript runtime built on Chrome's V8 JavaScript engine.
- A library for fetching, caching, and updating data in React applications.
- A promise-based HTTP client for the browser and Node.js.
- A utility-first CSS framework for rapid UI development.
Follow these steps to set up and run the project on your local machine.
Make sure to install the following prerequisites:
-
Node.js:
- Download and install Node.js from nodejs.org.
-
XAMPP:
- Download and install XAMPP from apachefriends.org.
Clone the project repository from GitHub:
git clone https://github.com/impooya/cms-site-fa.git
cd cms-app
install the Node.js dependencies
npm install
Navigate to the backend
directory and install the Node.js dependencies:
cd cms-app/backend
npm install
To set up the MySQL database for this project, follow these steps:
- Open XAMPP and start the Apache and MySQL services.
- Open your browser and navigate to http://localhost/phpmyadmin.
- Create a new database named
sabzlearn_shop
. - Go to the "Import" tab and upload the
sabzlearn_shop.sql
file located incms-app/backend/database
.
To run the project, open two terminal windows or use a terminal multiplexer.
- Navigate to the backend directory:
cd cms-app/backend
- Start the backend server with the following command:
node server.js
- In another terminal, navigate to the project root (where
vite.config.js
is located):
cd cms-app
- Run the frontend development server:
npm run dev
#or
vite
This project is not responsive for mobile and tablet and has limited features; it is somewhat a simulation of a real project. Updates will be coming soon.