Self-hosted web server for PromoJio
Member | Student Number |
---|---|
Ashley Koh Jia Jhin | 1004197 |
Siew Rui Ze, Zayne | 1007180 |
Tan Yan Lin, Charlese | 1007075 |
Khoo Jing Heng | 1007221 |
Allison Yee Wen Chyi | 1007020 |
Asli Robin Rufo | 1007212 |
Austin Isaac | 1007099 |
- IntelliJ Idea Community Edition - recommended (scroll down to black banner)
Other IDEs (e.g. VSCode) also viable - Docker - follow the installation instructions from the official documentation
- Select
Get from Version Control
when creating new project. - Paste
https://github.com/ashley-koh/promojio-server.git
and selectClone
- Run the following command in a terminal:
docker compose up -d mongodb mongo-express
- An instance of MongoDB and MongoExpress should now be running in the background
- Build and run this git repo in IntelliJ Idea (or your IDE of choice) to run this server
- Connect to Spring Web Server on
http://localhost:8080
- View MongoExpress on
http://localhost:8081
- Update
application.properties
to use mongodb container network
spring.data.mongodb.uri=mongodb://rootuser:rootpass@mongodb:27017
- In a terminal on the directory of this project, run:
mvn clean install
mvn package
docker image build -t ashleykoh24/promojio-server .
docker compose up -d
- Connect to Spring Web Server on:
http://yourserverip:8080
- View MongoExpress on:
http://yourserverip:8081
(Note: This server is currently unsecured)