Below instructions are for Docker Compose setup to run the app simultaneously -
Make sure you have Docker installed on your system:
-
Clone the Repository
git clone https://github.com/VivekDev01/Online-test-Proctoring-2.0 cd Online-test-Proctoring-2.0
-
Configuration
- Rename
.env.example
to.env
and set appropriate values for environment variables (e.g.,MONGODB_URL
,JWT_SECRET
). - Edit the docker-compose.yaml file to setup the environment variables (e.g.,
MONGODB_URL
,JWT_SECRET
)
- Rename
-
Start the Application
Run the following command in the terminal:
docker compose up --build
This command will build the necessary Docker images and start the containers for both apps.
-
Accessing the Apps
Once the containers are up and running, you can access the app on http://localhost:3000
-
Stopping the Application
To stop the running containers, press
Ctrl + C
in the terminal where Docker Compose is running, or execute:docker-compose down
- You can change the ports for local system according to your need or just ensure no other services are using the specified ports (
3000
,4000
,9000
) to avoid conflicts.