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:

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.


0.2 (2016-08-15)

  • Add support for Python 3.5 and make it the default test environment.
  • Apply standard js code style in client.
  • Upgrade to Cerebral 1.0 and update dependencies.
  • Refactor client to new Cerebral best practices.

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.

Files for morepath-cerebral-todomvc, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size morepath_cerebral_todomvc-0.2.tar.gz (508.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page