- Please ensure you have installed npm, php, composer for php, and a sql database, i.e. mariadb
- You can update the .env file inside Work_station-api DB_ section as you wish
- Migrate the database; in a terminal:
- Navigate to Work_station-api/ and run
php artisan migrate. A pop up will ask if you want to create the Work_station database and you have to checkyes. - Next, navigate to the root of the project
cd ..and runmysql -u root -p Work_station < database.sqland enter the password (default: "password"). Congrats, the database is now populated!
- Navigate to Work_station-api/ and run
- Launch the servers; run 2 terminals:
- In the first one, navigate to Work_station-api/, and run
composer installthencomposer update. Then runphp artisan serveto launch the api server. - In the second one, navigate to Work_station-react/, and run the command
npm installthennpm update. Then runnpm run devto launch the front server.
- In the first one, navigate to Work_station-api/, and run
- Now open your favorite browser (Firefox), and open in a new tab localhost:3000
You can now use our website! Enjoy!