Skip to main content

Morepath example of using React & Cerebral

Project description

TodoMVC based on Morepath and Cerebral

Cerebral TodoMVC with a Morepath REST backend.

Morepath backend

The backend ist based on morepath_reactredux. You find the code of the backend in the server directory.

From inside the project directory create a clean Python environment with virtualenv and activate it:

$ virtualenv env
$ source env/bin/activate

After this you can install the package including dependencies using:

$ env/bin/pip install -e .

Once that is done you can start the server:

$ env/bin/run-app

You can go to http://localhost:5000 to see the UI.

For installing the test suite and running the tests use:

$ env/bin/pip install -e '.[test]'
$ env/bin/py.test

TodoMVC JS bundle

We use the TodoMVC example from Cerebral, which is based on Baobab, React and Cerebral:

https://github.com/cerebral/cerebral-todomvc

JavaScript code is in the client subdirectory. To rebuild the bundle you need to install the JS dependencies (listed in package.json). Run:

$ npm install

to install them. Then run:

$ webpack

To rebuild the bundle after changing it.

CHANGES

0.1 (2016-05-04)

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morepath_cerebral_todomvc-0.1.tar.gz (494.9 kB view details)

Uploaded Source

File details

Details for the file morepath_cerebral_todomvc-0.1.tar.gz.

File metadata

File hashes

Hashes for morepath_cerebral_todomvc-0.1.tar.gz
Algorithm Hash digest
SHA256 6c326e805e171782027df0eec4aee98ee7f14e2e9b516f27193349cb13abf081
MD5 baccb81357d6df370783f7088c614c3f
BLAKE2b-256 35c16897243bc50efc714ee0b6367ad1ad52656df4ab5cf831c06bf3436735bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page