Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 2.38 KB

README.md

File metadata and controls

76 lines (50 loc) · 2.38 KB

Route scheduling with note

Introduction

An application that you can persist your places on a maps and route your schedules. Moreover, you can stick a small note to each place in the schedule as you want.

Usage

Backend server

Firstly, you need to add a small piece of configuration before starting the backend server. Please go to resource, then create a file named secret.properties with the following content:

ors.api_key=<YOUR_ORS_API_KEY>
app.jwt_secret=<JWT_SECRET_KEY>
app.jwt_expiration_ms=<JWT_EXPIRATION_MS>

Where the <YOUR_ORS_API_KEY> can get from the Open Route Service, this will help the backend use the map APIs. Moreover, because the applicaton use JWT token for Bearer authentication, you need to add secret key and expiration time, please note that <JWT_SECRET_KEY> must have length at least 32 characters (256 bits).

Then, you can start your backend server with IntelliJ, or manually by Maven script.

Install dependencies from pom.xml:

./mvnw dependency:resolve

Start the application:

./mvnw spring-boot:run

Frontend web

Afterward, you need to install all the required libraries in NodeJS package by typing:

npm install

Lastly, you can start your frontend with:

npm start

Enjoy the application!

Gallery

demo_img

Scheduling screen

Contribution

This is a side-project which has been done by phuc16102001 to learn Java Spring.

You are available to use it as a reference.

License

MIT