Table of Contents
It is a small application that simply shows the time of sunrise and sunset by entering a date and city, using two external APIs.
With Docker
Without Docker
- Clone the repo
git clone https://github.com/your_username_/Project-Name.git
cd Project-Name
-
Create a new PostgreSQL database in terminal or with pgAdmin4.
-
Copy the .env.sample as .env and set the following environment variables:
JWT_SECRET=your_jwt_secret_key
DATABASE_USERNAME=your_database_username
DATABASE_PASSWORD=your_database_password
- Set the following environment variables in the .env file:
DATABASE_URL=jdbc:postgresql://solarwatch-database:5432/solarwatch
BACKEND_URL=http://backend:8080
- Run the Docker and the following command to start all necessary services:
docker-compose up
Backend availability: http://localhost:8080
Frontend availability: http://localhost:3000
Backend:
- Set the following environment variables in the .env file:
DATABASE_URL=jdbc:postgresql://localhost:5432/your_database
BACKEND_URL=http://localhost:8080
-
Navigate to the backend library:
cd backend
-
Download dependencies:
./mvnw clean install
-
Start the application:
./mvnw spring-boot:run
Backend availability: http://localhost:8080
Frontend:
- Open a new terminal window and navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Start the application:
npm run dev
Frontend availability: http://localhost:5173
Simply select a date, enter a city name, and the two times will appear.
- Add UI message
- Add Loading page
- Add unique username Verification
- Add password Verification
- Create Admin page
See the open issues for a full list of proposed features (and known issues).