Giter Site home page Giter Site logo

solarwatch-new-features-general-zsbrigi's Introduction

SolarWatch

Overview

SolarWatch is a full-stack web application developed using Java Spring Boot. It allows users to register or login, select a city from a predefined list, and choose a past date. The application then provides the sunrise and sunset times for that specific date and location. This tool is perfect for those who need historical solar data for various purposes.

Features

  • User Registration: Users can create an account and log in securely.
  • City Selection: Users can select a city from a list of predefined locations.
  • Date Selection: Users can choose a past date to retrieve sunrise and sunset times.
  • Data Retrieval: The system displays the sunrise and sunset times for the selected city and date.

Technology Stack

Frontend

  • React.js: A JavaScript library for building user interfaces.

Backend

  • Java Spring: A comprehensive framework for building enterprise-level applications.
  • Spring Data JPA: For managing data persistence with PostgreSQL in a seamless and efficient manner.
  • Java Security: Ensures secure user authentication and authorization.
  • Docker Compose: Facilitates the setup and orchestration of the development environment.
  • PostgreSQL: A relational database system used to store user data, city information, and historical solar data.

Installation and Setup

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (for frontend)
  • Java JDK (for backend)
  • Docker and Docker Compose (for containerization)
  • PostgreSQL (if not using Docker)

Steps

  1. Clone the Repository:

    git clone https://github.com/CodecoolGlobal/solarwatch-new-features-general-zsbrigi
    cd solarWatch
  2. Frontend Setup:

    Navigate to the frontend directory:

    cd frontend_solarwatch
    npm install
    npm start

    This will start the React development server on http://localhost:3000.

  3. Backend Setup:

    Navigate to the backend directory:

    cd backend_solarwatch
    ./mvnw clean install

    You can start the Spring Boot application using:

    ./mvnw spring-boot:run

    The backend will run on http://localhost:8080.

  4. Database Setup:

    If you are using Docker Compose, simply run:

    docker-compose up

    This will set up the PostgreSQL database automatically.

    If you prefer to set up PostgreSQL manually, ensure that your application.properties or application.yml file is configured with the correct database credentials.

  5. Accessing the Application:

    Once both frontend and backend are running, you can access the application via your web browser at http://localhost:3000.

Usage

  1. Register: Create an account using the registration form.
  2. Login: Log in with your credentials.
  3. Select a City and Date: Choose a city from the list and a past date to retrieve the sunrise and sunset times.
  4. View Results: The application will display the sunrise and sunset times for the selected city and date.

solarwatch-new-features-general-zsbrigi's People

Contributors

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