/superclass

Primary LanguageJavaApache License 2.0Apache-2.0

superclass

1. Tools

1.1 Backend

Spring Boot

  1. follow the instructions in this link to install Spring Boot.

    NOTE: for build tools, we choose to use Gradle.

  2. The code structure looks like this:

    com
        +- superclass
            +- server
                +- Application.java
                |
                +- model
                |    +- Product.java
                +- dao
                |    +- ProductRepository.java
                +- controller
                |    +- ProductController.java
                +- service
                |    +- ProductService.java
  3. To run the server, use the command line below

    # inside the folder ~/server
    gradlew bootRun

###1.2 Frontend

React Native

  1. follow the instructions in this link to install React Native

  2. To run the app, use the command line below

    # inside the folder ~/superclass
    react-native link
    
    # for android platform
    react-native run-andorid
    
    # for ios platform
    react-native run-ios