Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 868 Bytes

README.md

File metadata and controls

48 lines (37 loc) · 868 Bytes

##Call for Code 2021 - Green Farm

Overview

This project is the backend code for Green Farm, built on SpringBoot and embedded Tomcat. The backend provides RESTful APIs for front-end H5 pages to call. It includes the following features:

  • Farm
  • Land
  • Produce
  • Community
  • PlantTask
  • Topic
  • BlockChain
  • Recommend
  • CarbonFootprint
  • Live

Getting Started

Package

FirstLy, copy the static resources (HTML, CSS, JS, picture) build by greenfarm-frontend to resources/static directory.

./mvnw clean install -P${build.profile.name}

supported ${build.profile.name} includes:

  • dev
  • ibm
  • aws

Artifact:

green-farm/target/greenfarm-1.0.0-aws.tar.gz

Start

tar -xvf greenfarm-1.0.0-aws.tar.gz
greenfarm-bin/bin/start.sh (linux)
greenfarm-bin/bin/start.sh (windows)

Stop

greenfarm-bin/bin/stop.sh