This is a full stack e-commerce site built using Vite React, Tailwind CSS, Express REST API alongside a MySQL database.
# Clone this repository
$ git clone https://github.com/MatthewBleUK/ecommerce-site.git
# Go into the repository
$ cd ecommerce-site
# Install the front-end dependencies
$ npm install
# Install the back-end dependencies (this is separated for modularity)
$ cd ./src/api
$ npm install
# Create the MySQL database and tables with the products.sql file inside the api directory
# Set up back-end environment file (needs to be inside the api directory)
$ nano .env
PORT=3002
DATABASE_HOST="localhost"
DATABASE_USER="root"
DATABASE_PASSWORD=""
DATABASE_NAME="ecommerce"
DATABASE_CONNECTION_LIMIT=10
# Run the app
$ cd ../../
$ npm start
This project is released under the GNU General Public License v3.