/secord

gradle postgresql create react app redux tools typescript

Primary LanguageTypeScript

Secord 🎖️

Java (Gradle) PostgreSQL Backend with a React/Redux/Typescript Frontend

Getting Started (prebuilt)

  1. Update the application properties file with your database credentials

see src > main > resources > application.properties

  1. populate the default postgres database with a colonist table and some colonists

see scout.sql

  1. Run the App
gradle bootRun

Open your browser to http://localhost:8080 to see the React frontend

Open your browser to http://localhost:8080/demo/all to see a sample JSON response

Getting Started (scratch)

  1. visit spring initializer

Setup a new project with these settings:

cranes

cranes

Generate and download the zip. Open it in your editor and launch a terminal.

  1. Install Create React App with typescript & add the redux toolkit
cd src/main
npx create-react-app webapp --template typescript
yarn add @reduxjs/toolkit
yarn add react-redux @types/react-redux
  1. Update the application properties file with your database credentials

see src > main > resources > application.properties

Articles