- Express
- Node
- MySQL
Getting started:
- Run
npm installto install the dependencies in the project folder - To start the server, run
npm start
- React
- Vite
Getting started:
- Open a separate Terminal to start the front end
- Go into the client directory by entering
cd clientinto the Terminal - Install the dependencies with
npm install - Run
npm run devto see the website
Create .env file in server directory and add
DB_HOST=localhost
DB_USER=root
DB_PASS=TYPE YOUR PASSWORD
DB_NAME=podcast
SUPER_SECRET=YOUR SECRET KEY
Type mysql -u root -p to access the MySQL CLI using your password.
In the MySQL CLI, type CREATE DATABASE podcast; to create a database in MySQL.
Run the following in the MySQL CLI: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOUR_PASSWORD'; (replace YOUR_PASSWORD with your actual password)
Open another terminal and go into the project folder and run npm run migrate. This will create the tables needed for this project since this has been configured in the package.json of the server.
In addition to nodemon and the regular stuff, our project also includes node-fetch so we can do fetches in the backend and react-router-dom so we can use react-router for pages.
This is a student project that was created at CodeOp, a full stack development bootcamp in Barcelona.