Skip to content

gustavo-gomez/java_play_mysql_Ebean_reactJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

  • This is a template, which you can start from
  • We are using: Play Framework 2.8, Java 11, Webpack, ReactJs, Ebean ORM, MYSQL
  • In the view you will find a button, this will insert a new row in database, using Ebean ORM to connect Java and MYSQL

Pre Requisites

Install the following:

  • Java
  • sbt
  • Mysql 5 or 8.0

Setup Project

Clone into your local:

git clone https://github.com/gomezf09/java_play_mysql_Ebean_reactJs.git

Update database username and password in application.config. You can use environment variables for it, like this:

db.default.url=${?DB_CONNECT_URL}
db.default.username=${?DB_USERNAME}
db.default.password=${?DB_PASSWORD}

Create a database called: test_db (if you are using another name, be sure to update the file application.config)

Depending of the MYSQL version you had installed, update build.sbt

Setup backend

sbt compile

Install react dependencies

cd react
npm install

Run the project

Frontend

cd react
npm start

Backend

sbt run

Also you can run backend using an IDE, in that case you just need to run frontend

About

Template project using: Play Framework, Java, reactJs, MYSQL and Ebean ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published