In this project we are using React.js and mysql as a server for the application.
We will get through running the app and the tools needed for it.
Xampp is an open source package that contains MariaDB that we use in the project
Simply it provide us a localhost and we can build a MySQL database,
You can find the link here:[https://www.apachefriends.org/index.html]
After downloading Xampp, you can import the database of the project without creating a new one, just open [http://localhost/phpmyadmin] but make sure Xampp is activated with Apache and MySQL services are ON Then import the database and now it's ready.
By opening [https://www.npmjs.com/package/react] you can find all the helpfull ways of understanding the React package, but for now you just need this command and that's it.
Yarn is way faster and reliable and it caches faster and that what we need to run our server for the database, open [https://www.npmjs.com/package/yarn] and check all the info needed.
This is no initiate yarn package on your system
In this part we add express and mysql database configs to the index.json file
That's the way for running the backend or the server for the project, which enables the server.
It connects the server on port 4000, so in order to check the connection, open http://localhost:4000 to view it on the browser.
Before running the project, you have to install all the libraries and packages
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
To run the server, open the index json file in the server forder and run this command on it, if everything went right with the connection with the local database on [localhost/phpmyadmin], the cmd will print
After that you are good to go.
In this command, we aim for running both dockerfiles of the project with different ports assigned to each of them in the file
We have two dockerfiles in the project, one for the frontend and the other for the server backend, all is run in one command but for seprate commands: