Giter Site home page Giter Site logo

solar-watch-security-java-soosdsara's Introduction

LinkedIn

Solar Watch

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap

About The Project

It is a small application that simply shows the time of sunrise and sunset by entering a date and city, using two external APIs.

[Login Screen Shot]

Built With

  • JavaScript
  • Java
  • Vite
  • React
  • Spring Boot
  • Postgresql
  • Docker

(back to top)

Getting Started

Prerequisites

With Docker

Without Docker

Installation

  1. Clone the repo
git clone https://github.com/your_username_/Project-Name.git
cd Project-Name
  1. Create a new PostgreSQL database in terminal or with pgAdmin4.

  2. 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

With Docker

  1. Set the following environment variables in the .env file:
DATABASE_URL=jdbc:postgresql://solarwatch-database:5432/solarwatch
BACKEND_URL=http://backend:8080
  1. 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

Without Docker

Backend:

  1. Set the following environment variables in the .env file:
DATABASE_URL=jdbc:postgresql://localhost:5432/your_database
BACKEND_URL=http://localhost:8080
  1. Navigate to the backend library:

    cd backend
    
  2. Download dependencies:

    ./mvnw clean install
    
  3. Start the application:

    ./mvnw spring-boot:run
    

Backend availability: http://localhost:8080

Frontend:

  1. Open a new terminal window and navigate to the frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Start the application:
npm run dev

Frontend availability: http://localhost:5173

(back to top)

Usage

Simply select a date, enter a city name, and the two times will appear.

[Example Screen Shot]

(back to top)

Roadmap

  • 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).

(back to top)

solar-watch-security-java-soosdsara's People

Contributors

soosdsara avatar

Watchers

Livia Dobai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.