GithubHelp home page GithubHelp logo

minjibir / play-silhouette-angular-typescript-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thinkmorestupidless/play-silhouette-angular-typescript-template

0.0 1.0 0.0 326 KB

License: Other

TypeScript 19.81% HTML 11.17% JavaScript 6.27% Scala 61.52% CSS 1.23%

play-silhouette-angular-typescript-template's Introduction

Play Silhouette Angular Typescript Giter8 Template

The Play Silhouette Angular Giter8 Template shows how Silhouette can be used to create a SPA with Angular/ng2-ui-auth. It's a starting point which can be extended to fit your needs. It was migrated from the existing seed with AngularJS: play-silhouette-angular-seed.

Dependencies

  • Play! Framework 2.6
  • Scala 2.12
  • Silhouette 5
  • Angular 5
  • Bootstrap 4
  • Webpack
  • RxJS

Features

  • Sign Up
  • Sign In (Credentials)
  • Password forgotten (Credentials)
  • JWT authentication
  • Social Auth (Facebook, Google+, Twitter)
  • Dependency Injection with Guice
  • Publishing Events
  • Avatar service

Getting started

Install sbt and node.js first.

In order to play with this sample locally you need to:

  • go to the app-ui subfolder and run:
    npm install
    
  • configure the social providers:
    • by putting client id and secrets in your environment (see silhouette.conf to know the exact syntax). For instance it is GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET for Google.
    • and by setting the correct values in your webpack configuration (app-ui/webpack/webpack.config.dev.js for local dev, and app-ui/webpack/webpack.config.prod.js for production). I did not find a way to avoid this duplication unfortunately.
  • run "sbt start" from this sample root folder

Documentation

Consult the Silhouette documentation for more information. If you need help with the integration of Silhouette into your project, don't hesitate and ask questions in our mailing list or on Stack Overflow. For specific issues or questions related to this template, please do not hesitate to open issues on github.

Test it live

This sample is deployed with Heroku here: https://play-silhouette-angular-ts.herokuapp.com/

License

The code is licensed under Apache License v2.0.

play-silhouette-angular-typescript-template's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.