- Frontend: : https://task-management-application-pearl.vercel.app/
- Backend: : https://task-manager-app.azurewebsites.net/api/v1/health
- Frontend: NEXT.js
- Backend: Spring Boot
To set up the application locally, follow these steps:
-
Clone the repository.
-
Open IntelliJ IDEA, navigate to the backend folder, and run the Spring Boot application.
-
I've set the default port to be 80 (
http://localhost/
), and other configurations like the database URL are intentionally exposed for easy local setup. -
Additionally, for an alternative deployment approach, you can leverage the flexibility of Docker to run the application. To do so, effortlessly build and execute the Docker image found in the
backend
folder. Alternatively, you may opt for an existing image available on Docker Hub by executing the following commands:docker pull gihaa/taskmanager:latest
docker run -d -p 80:80 gihaa/taskmanager:latest
-
Verify the application's health by checking
http://localhost/api/v1/health
. -
For the frontend, Change directory to the frontend and run
npm install
to install node modules. -
Optionally, modify the API URL to use either the online backend or a local backend by commenting/uncommenting lines in
src/api/api.ts
://export const BE_URL = "http://localhost/api/v1"; export const BE_URL = "https://task-manager-app.azurewebsites.net/api/v1";
-
Regarding the initial login request from the backend, it might take around 1 - 2 minute to complete. This delay is due to my current use of free hosting options, which tend to shut down due to inactivity. It is important to note that this issue is not related to the code quality of the backend. After reactivating from inactivity, the backend should work quickly and without issues. Additionally, the local setup doesn't experience this problem
-
Execute
npm run dev
to start the application. -
Open
http://localhost:3000/
to access the application. -
Now, you're ready to use the Task Management Application locally.
-
Example logins.. feel free to add new users as well
Role Email Password Owner owner@gmail.com Gihan_123 Admin admin@gmail.com Admin_123 Regular User pawan@gmail.com Pawan_123