Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Docker. If not, please follow these guides to install Docker on Windows, Mac, or Linux.
- You have installed the latest version of Node.js. If not, please follow these guides to install Node.js on Windows, Mac, or Linux.
-
Open your terminal and navigate to your project directory. Or in vscode open the terminal by clicking Ctrl j
-
Run the following command to start Docker:
> docker-compose up
Wait for everything to start up. The backend should now be running on port 8700 and the database on port 3606.
open a new terminal and run :
> docker exec -it aaa-aast-web_project-back-mysql-1 mysql -p
You will be given something like :
> docker exec -it aaa-aast-web_project-back-mysql-1 mysql -p
Enter password:
Enter the password given in the Docker Compose file. In our case, the default password is root
.
mysql>
Now you have admin access to the database. Start by typing:
mysql> USE db
db
is the default database name set by the first init. You can also use SHOW TABLES
to check the tables in the database and interact with them.
- Open your terminal and navigate to your project directory.
- Run the following command to install the dependencies:
> npm i
- After the installation is complete, start the frontend by running:
> npm run dev