-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Make sure you're in the directory of frontend
and run:
npm install
npm start
You can dockerize every service. For ease of development, we have provided a script called run.sh
. This option lets you dockerize every service and includes nginx
, a load balancer. If you only want to dockerize the mysql db, then follow instructions on 2. instead.
- Make sure you install docker and docker-compose in your computer
(If docker compose does not work, install it using pip3 i.e.
pip3 install docker-compose
) - Download the repository, and
cd backend
- Run
./run.sh run
and wait until the program finishes. - Wait for a few minutes (this will only be needed in the first run).
- Visit
localhost
at port80
and your spring application should be running there.
Yes, every time you make a change it will automatically reload in the docker container.
You can visit localhost:8081
that will open adminer, which allows db management of the mysql data.
If you want to stop the application, run ./run.sh stop
.
You can still run the application on your computer while having docker run the database.To do this, do the following:
- Install java 11 in your machine.
- Run
mvn clean install
- Then finally run:
./run.sh db-only
mvn spring-boot:run
You can visit localhost:8081
that will open adminer, which allows db management of the mysql data.
Yes, every time you make a change, the spring application should automatically reload.
You can kill the mvn process through hitting ctrl+c
in the terminal. And, you can stop the db container using: ./run.sh stop
- Ensure you're using IntelliJ
- Ensure that you have MySQL Installed
- Ensure that the MySQL Server is running
- Make sure that you have a database up and running with the following properties:
- Database is running under
localhost:3306/db_lonlygames
- There is a user called
lonlygames
- The password should be
password
- The server port should
8080
lOnlyGames Copyright©
Authors:
- Brendon Lam
- Mohamad Abdulbaki
- Mohammed Mustafa Fulwala
- Nabeel Khan
- Petar Avramovic
- Sadman Sakib
- Zain Cheema