Coder Social home page Coder Social logo

life-server's Introduction

Simple REST API in Play

An activator template for implementing Json based REST API.

life-server's People

Contributors

jcranky avatar jrudolph avatar kirhgoff avatar maxcom avatar p3t0r avatar sirthias avatar stillalex avatar vmunier avatar

Watchers

 avatar

life-server's Issues

Gracefully stop and pause BigSoup

Server:

  1. Incoming request from client should be able to start and stop BigSoup gracefully.
  2. Akka actors should be terminated on stop and last world state should be returned to the caller

Front-end:

  1. Add stop and pause buttons on front-end side to control process in BigSoup

est: 1 + 2 / 1 = 4
spent: 1 = 1
2015-09-24: tried to fix logging and make play stop, no chance

Rebuild life-server on spray

Play appears not very friendly in control, rebuild the project

  • maven build, good to split the project into modules, though not important right now
  • use spray as HTTP server
  • make sure UI works
  • make sure it is deployable into heroku

Write results and seed to database

  1. Create Observation class, calculate it from every WorldModel update, write to database
  2. Write Seed to database for every specific WorldModel type
  3. Update final results for Seed (world end) on stop

Use Slick as database layer
Database should be cleanable

est: 2 + 2 + 1 = 5

Observation chart component

Front-end:

  1. Split react-app.js onto components
  2. Create Observation class to present every day memento
  3. Create Archive, storing mementos and supplying data to consumers
  4. Create ObservationView component, create specific versions:
    a) NumberChart that able to draw number-based calculations on Observation
    b) LabelPanel to draw simple text

est: 2 + 1 + 1 + 3 = 7 days

Seed parameters form

Front-end:

  1. Add ability to choose from existing types of model: hardcoded list (life and lv)
  2. Seed class for every world type
  3. Views to show Seed creation parameters for every type
    (TODO in future make them generic)

Server:

  1. Create model classes with JSON serialization: Seed, WorldModel
  2. Make server accept these model objects and supply to Akka and DB

est: 1 + 1 + 1 / 2 + 1 = 6

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.