Secord 🎖️
Java (Gradle) PostgreSQL Backend with a React/Redux/Typescript Frontend
Getting Started (prebuilt)
- Update the application properties file with your database credentials
see src > main > resources > application.properties
- populate the default postgres database with a colonist table and some colonists
see scout.sql
- 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)
- visit spring initializer
Setup a new project with these settings:
Generate and download the zip. Open it in your editor and launch a terminal.
- 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
- Update the application properties file with your database credentials
see src > main > resources > application.properties
Articles