Giter VIP home page Giter VIP logo

scala-play-example's Introduction

scala-play-example

Completely written in Scala programming language, with the help of

What you will find in this repository:

  • How to add more abstraction to Slick (here)
  • Auto table generation on startup using Slick (here)
  • Handling complex forms in Play! (here or here)
  • Token-based Authentication using JWT (here)
  • Advanced scheduling with akka (here and here)
  • Managing concurrent db inserts/updates using akka actors (here)
  • Working with shapeless tuples (here) and lenses (here)
  • etc.

DB configuration

Currently using H2 db (see here), but you can easily replace it with your favorite db. (More information)

TODO

  • Source code documentation
  • Add more functionalities & features
  • Play with Slick thread-pool & connection-pool configurations
  • Do some load & performance tests using gatling
  • Provide comparison between Slick and Hibernate ORM

API

# Location
GET                 /province/list
GET                 /city/list/:provinceId

# Car Brand & Model
POST                /car/brand/add
GET                 /car/brand/list
GET                 /car/brand/search/:name
POST                /car/model/:brandId/add
GET                 /car/model/list/:brandId
GET                 /car/model/search/:brandId/:name

# Auth
POST                /auth/login
GET                 /auth/me
GET                 /auth/login/list
POST                /auth/token
POST                /auth/logout

# File
GET                 /file/:name

# Seller
POST                /seller/register
PUT                 /seller/photo/upload
DELETE              /seller/photo/delete
GET                 /seller/info/:id
GET                 /seller/info
GET                 /seller/list
GET                 /seller/list/:sellerType
GET                 /seller/list/:location/:locationId
GET                 /seller/list/:sellerType/:location/:locationId

# Ad
POST                /ad/submit
PUT                 /ad/submit/:id
PUT                 /ad/cancel/:id
GET                 /ad/info/:id
PUT                 /ad/view/:id
PUT                 /ad/view/phone/:id
GET                 /ad/list

Note: for more information, please import this dump file to your Postman app.

scala-play-example's People

Contributors

ahmadmo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gh-abdoli

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.