- java8
- maven
- nvm(6.11.1)
- docker(optional)
- postgresql9.4(optional)
- Front end
- React
- Redux
- Ant design library
- gulp
- npm
- webpack
- Hot module Replacement
- Back-end
- Java8
- Spring Boot
- JPA
- Maven
- Postgres(optional)
- Docker
- install Postgresql9.4
- run
sudo -u postgres psql -a -f code-snippet-bin-react-springboot-starter/createDB.sql
to create a local db code
In code-snippet-bin-react-springboot-starter/src/main/resources/application.properties
# change if necessary
spring.datasource.url=jdbc:postgresql://localhost:5432/code
spring.datasource.username=code
spring.datasource.password=code
experimental db is provided to fast-bootstrap.
# Experimental db
# db url: jdbc:postgresql://35.221.214.28:5432/code, username: code, password: code
# db url: jdbc:postgresql://35.221.214.28:5432/code1, username: code1, password: code1
# db url: jdbc:postgresql://35.221.214.28:5432/code2, username: code2, password: code2
#Example
spring.datasource.url=jdbc:postgresql://35.221.214.28:5432/code
spring.datasource.username=code
spring.datasource.password=code
git clone <url>;
cd code-snippet-bin-react-springboot-starter;
mvn spring-boot:run # for backend server
gulp watch # for frontend script
# access http://localhost:5000 in a browser
cd code-snippet-bin-react-springboot-starter;
mvn spring-boot:run # for backend server
npm start # for frontend script
# access http://localhost:3000 in a browser
cd code-snippet-bin-react-springboot-starter;
./build.sh