/play-silhouette-rest-slick-reactjs-typescript

Example BackEnd project for Play Framework that uses Silhouette for authentication and authorization, exposed REST API for sign-up, sign-in + example FrontEnd project for ReactJS+ Typescript used for handling view layer.

Primary LanguageScala

Silhouette REST Slick BackEnd + FrontEnd Seed Build Status

Example BackEnd project for Play Framework that uses Silhouette for authentication and authorization, exposed REST API for sign-up, sign-in + example FrontEnd project for ReactJS+ Typescript used for handling view layer. FrontEnd application implements authentication and accessing secured backend actions.

BackEnd application uses Play, Silhouette, Slick and H2 for storage.

FrontEnd application uses Node.js, React, Typescript, Material-UI. Project generated based on create-react-app-typescript.

Prerequisites

- node.js (recommended version 8.x)
- H2 (database)

Installation

  • Before you run you have to build FrontEnd project. To do it run command in PROJECT_ROOT/app/frontend directory of project:
    npm i
    
  • To run BackEnd + FrontEnd together you need to run command from project root directory:
    sbt run
    

Built-in users

username password
test1 test1Password
test2 test2Password

Database reload

Slick evolutions are responsible for data reloading.

API documentation

Documentation is available under address: REST API

License

The code is licensed under Apache License v2.0.