Skip to content

AndrewSafwat1/Feedify

 
 

Repository files navigation

Feedify

Your Friendly Neighborhood Social-Media Platform

Setup

1. Backend Setup

  1. Clone the repository
  2. Install the dependencies
    • Java 23
    • MySQL Check if you have Java and MySQL installed by running the following commands:
    java --version
    mysql --version
  3. Create a database in MySQL
    CREATE DATABASE feedify;
  4. Create the user for the database
    CREATE USER 'feedify_admin'@'localhost' IDENTIFIED BY 'Admin@123';
  5. Grant the user all privileges on the database
    GRANT ALL PRIVILEGES ON feedify.* TO 'feedify_admin'@'localhost';
  6. Apply changes to the database
    FLUSH PRIVILEGES;
  7. For maven
    mvn clean install

2. frontend Setup

  1. Open frontend folder
    cd frontend
  2. Install all dependencies
    npm intstall
  3. Run frontend server
    npm run dev

IMPORTANT NOTES

  • 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>;
    

Timeline

1. Milestone 1 (Done)

2. Milestone 2 (In Progress)

About

Your Friendly Neighborhood Social-Media Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 61.6%
  • JavaScript 28.6%
  • CSS 9.7%
  • HTML 0.1%