This is a role based stock system with different users who have different roles
-
Create Database:
mysql -u root -p < db/create_database.sql ## Setting Up the Database
-
Ensure Flyway is Installed: Download and install Flyway from Flyway's website.
-
Configure Flyway:
- Create a
flyway.conffile in the root of your project directory. - Update the
flyway.conffile with the following configuration:flyway.url=jdbc:mysql://localhost:3306/stock flyway.user=your_username flyway.password=your_password flyway.locations=filesystem:./migrations
- Create a
-
Apply Migrations:
- Run the following command to apply the migrations:
flway repair flyway migrate
- Run the following command to apply the migrations:
-
Verify Setup:
- Ensure the database schema is up to date by checking the tables and schema.