/polling

A sample app with React + Java API + MySQL

Primary LanguageJavaApache License 2.0Apache-2.0

Polling App: React + Java Spring Boot (Maven) + MySQL

This example shows how to leverage Okteto to develop a React + Java Spring Boot (Maven) + MySQL Sample App directly on Okteto Cloud. The Sample App is deployed using a kustomize. It creates the following components:

  • A React based frontend.
  • A Java Spring Boot api.
  • A MySQL database.

Preview

App Screenshot

Tutorial

  • Deploy the Polling App on your personal namespace by clicking on the following button:

Develop on Okteto

  • To develop on the frontend component:
    $ okteto up -f frontend/okteto.yml
      ✓  Development container activated
      ✓  Files synchronized
         Namespace: githubid
         Name:      frontend
         Forward:   9229 -> 9229
                    8080 -> 80

    Welcome to your development environment. Happy coding!
    githubid:frontend okteto> yarn install
    githubid:frontend okteto> yarn start
  • To develop on the api component:
    $ okteto up -f api/okteto.yml
      ✓  Development container activated
      ✓  Files synchronized
         Namespace: githubid
         Name:      api
         Forward:   5005 -> 5005
                    8080 -> 8080

    Welcome to your development environment. Happy coding!
    githubid:api okteto> mvn spring-boot:run