Skip to content

Sample CRUD application with Scala, Play framework, MongoDB and AngularJS

Notifications You must be signed in to change notification settings

SimplyScala/simple-crud-scala-play-mongo-angular

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORK IN PROGESS

Simple CRUD : scala / play / mongo / angular

This app aims to show how to design a simple CRUD application using Play framework (and Scala) for a REST API backend and AngularJS for the frontend. It uses news tools for productivity such as grunt and bower.

Setup

This project is using a lot of tools. All should be installed before starting to run it.

Versions of used libraries :

Feel free to send a pull request to upgrade versions...
(I will try to stay as up to date as possible)

Getting started

  • Open a terminal and go to the root app folder
  • mkdir app/views to create the folder views for Play
  • cd ui go to ui/ folder to setup frontend tools
  • npm install to install all grunt dependencies
  • bower install to install all bower dependencies
  • grunt play to build project and generate play files
  • Start mongodb
  • cd .. go to root folder
  • play run to launch the application in play server
  • Go to localhost:9000 to see the application

Development

When you develop with this configuration, you should have at least two terminals opened. One for play (backend) and one for grunt (frontend).

  • Go to folder ui/ and run grunt dev. It will launch a watch to sync your frontend files in play.
  • Go to root folder and run play run. It will start the play server.

TODO

  • write tests !!! (Scala & AngularJS)
  • finalize scala rest apis (improve actual code, remove deprecated code)
  • add a REST api with play-autosource
  • work with more complex objects (nested objects, arrays, options) & add metadata (createDate...)
  • improve REST apis & UI (pagination, searches...)

Credits

I take some code & inspiration in various projects and articles. Bests are :

About

Sample CRUD application with Scala, Play framework, MongoDB and AngularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.8%
  • Scala 32.6%
  • CSS 7.6%