https://github.com/do-ko/sproutweb
Responsive online plant shop application
https://github.com/do-ko/sproutweb
axios java plants postgresql reactjs spring-boot
Last synced: 3 months ago
JSON representation
Responsive online plant shop application
- Host: GitHub
- URL: https://github.com/do-ko/sproutweb
- Owner: do-ko
- Created: 2024-02-09T15:41:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T13:41:36.000Z (about 2 years ago)
- Last Synced: 2025-09-17T21:05:51.572Z (10 months ago)
- Topics: axios, java, plants, postgresql, reactjs, spring-boot
- Language: JavaScript
- Homepage:
- Size: 25 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
SproutWeb is a responsive online shop application designed for gardening enthusiasts
to effortlessly purchase plants, soil, and pots. From a technical standpoint,
the application is built using a combination of React.js for the front-end and Spring Boot for the back-end.
# Environmental variables
## Frontend
To enable comunication between frontend and backend, in /sprount_app/src/api/axios.js replace existing BASE_URL with your own.
Example of configuration:
```
BASE_URL = "http://{host}:{port}";
```
By default host is your localhost address. To change it add server.address in application.properties file located in /sprout/src/main/resources.
```
server.address = x.x.x.x
```
## Backend
To connect to the database, create another .env file in /sprout/src/main/resources following .env.example variable format and input variables.
To generate key: https://asecuritysite.com/encryption/plain
Example of .env file:
```
DATABASE_URL="jdbc:postgresql://{host}:{port}/{database_name}"
DATABASE_LOGIN="postgres"
DATABASE_PASSWORD="password"
ENCRYPTION_KEY="{256-bit key}"
```
# How to run
## Frontend
to start frontend application navigate to **sprout_app** directory and run following command:
```
npm start
```
## Backend
to start backend navigate to **sprout** directory and run following command:
```
./mvnw spring-boot:run
```