A responsive website about the Keelung city famous tourist spot.
Use a web crawler to scrape TravelKing as a source of content.
https://keelung-sight-viewer.yuankai.org/
Client : Html
TailwindCSS
javascript
Server : Java
Spring boot
Jsoup
Database : MonogoDB(Atlas)
Deploy : Docker
To run this project, you will need to add the following environment variables to your .env file
DB_PASSWORD
: the database password in Atlas
DB_NAME
: the database name in Atlas
PORT
: the port to run
Clone the project
git clone https://github.com/Yuankai619/KeelungSightViewer.git
Go to the project directory
cd KeelungSightViewer
Install backend dependencies
gradle clean build
Install frontend pakage
cd src/main/frontend
npm install
npm run build watch
To run this project with docker, you can pull my docker image from docker hub
Docker Pull Command
docker pull yuankai619/keelungsightviewer
Run with docker container
docker container run -d -p:8080:8080 -e DB_PASSWORD={your_password} DB_NAME={your_name} PORT=8080 --name {your container name}
To deploy this project on KEROKU, I use Github Action and convient tool : https://github.com/AkhileshNS/heroku-deploy
GET /SightAPI?{zone}
Parameter | Type | Description |
---|---|---|
zone |
string |
Required. the zone about sights |
GET /SightCategoryAPI?{category}
Parameter | Type | Description |
---|---|---|
category |
string |
Required. the category about sights |
POST /InsertTestSight
Delete /ClearTestSight