简体   繁体   English

如何使用Play framework 2.0 / 2.1制作管理面板

[英]How to make an admin panel using Play framework 2.0/2.1

I am doing with SCALA and Play Framework 2.1. 我正在使用SCALA和Play Framework 2.1。 I have doubt in mind that, is it possible to make an Admin panel using Play & SCALA? 我怀疑,是否可以使用Play和SCALA制作管理面板?

An Admin panel may have CRUD. 管理员面板可能具有CRUD。 It will have some products. 它会有一些产品。 I need to manage all the Products through back-end. 我需要通过后端管理所有产品。 I have worked with Play 1.2 & Play 2.1. 我使用过Play 1.2和Play 2.1。 but didn't got chance to work on ADMIN panel. 但没有机会在ADMIN面板上工作。

Is there any module available for Back-end. 是否有可用于后端的模块。 Can anybody suggestion me on the same? 任何人都可以建议我吗?

No, Play in general has no typical usage targeted, so there's no BE module or CRUD in Play 2, you need to create your panel yourself according to your needs. 不,Play一般没有针对性的典型用法,因此Play 2中没有BE模块或CRUD,您需要根据自己的需要自行创建面板。

Tip: fortunately there are available modules for authentication and authorization, so you don't need to create it from scratch, check for an example Play Authenticate for Java. 提示:幸运的是,有可用于身份验证和授权的模块,因此您无需从头开始创建它,请查看示例Play Authenticate for Java。

Easy way for building custom backends is using Twitter Bootstrap and Play's Forms although this approach is not as fast as CRUD known from Play 1.x - it gives you full flexibility with minimally higher cost. 构建自定义后端的简便方法是使用Twitter BootstrapPlay的表单,尽管这种方法不如Play 1.x所知的CRUD快 - 它以极低的成本为您提供了充分的灵活性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM