Your Friendly Neighborhood Social-Media Platform
- Clone the repository
- Install the dependencies
- Java 23
- MySQL Check if you have Java and MySQL installed by running the following commands:
java --version
mysql --version
- Create a database in MySQL
CREATE DATABASE feedify;
- Create the user for the database
CREATE USER 'feedify_admin'@'localhost' IDENTIFIED BY 'Admin@123';
- Grant the user all privileges on the database
GRANT ALL PRIVILEGES ON feedify.* TO 'feedify_admin'@'localhost';
- Apply changes to the database
FLUSH PRIVILEGES;
- For maven
mvn clean install
- Open frontend folder
cd frontend - Install all dependencies
npm intstall
- Run frontend server
npm run dev
- Springboot will automatically create the tables in the database
- If you're creating a new entity, stop the springboot application so it doesn't instantly create the table while you're still working on the entity
- If you made a mistake in the entity, delete the table from the database and restart the springboot application
DROP TABLE IF EXISTS <table_name>; - To check schema of the database
SHOW TABLES; - To check the schema of a table
DESCRIBE <table_name>;