Coder Social home page Coder Social logo

adrianrafo / play-freestyle-slick Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

Example of Frestyle-Slick integration in Play Framework and Postgresql database

Scala 84.76% HTML 15.24%
freestyle scala functional-programming play-framework slick postgresql-database

play-freestyle-slick's Introduction

Features

The project use a Freestyle-Slick integration in a Play framework application, including a form for insert a user data with validation, security filters and response in Json as part of example of how to do an Api Rest.

How to run

To run this project you need to have installed:

  • JDK: v8
  • SBT: v0.13.15
  • Scala SDK: v2.11.11

Once you have it all installed in project root execute in terminal sbt run and open in a browser localhost:9000 to see it.

Folder guide

Controllers: Compose by actions that get the request and return a response or redirect to another action.

Dao: Folder of Slick generated mapping and Fresstyle-Slick integration.

Views: The twirl templates.

Filters: Security filters.

Conf: The application.conf with the configuration and routes with the app routes.

Public: Assets folder.

How to make a mapping

I'm using ĂŹn this project Slick-CodeGen.

To generate the file Tables.scala with the mapping you can execute sbt slick-gen.

Schema.

To generate the schema you can run Tables.schema.create first in the main method.

Note: Set your own user and password in application.conf and build.sbt.

play-freestyle-slick's People

Contributors

adrianrafo avatar

Stargazers

 avatar

Watchers

 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.