Skip to content

lgh5018/rxjs-todo

 
 

Repository files navigation

Yolk/RxJS/Express/Postgres Todo App

A Todo application built on top of Yolk.js, RxJS, Express, and Postgres, which runs in Docker container.

Demo

https://lab.miguelmota.com/rx-todo/

Running

To see it in action follow these steps:

  1. Install Docker from Downloads page.

  2. Git clone this repo.

$ git clone git@github.com:miguelmota/rx-todo.git
  1. Set up Docker and build.
# Start docker daemon
$ eval "$(docker-machine env default)"

# Build
$ docker-compose build
  1. Run Docker container.
$ docker-compose up
  1. Open app url in browser.
$ open http://$(docker-machine ip):8080/
  1. Write todos!

Development

Follow these steps to set up development environment.

  1. Install Postgres from the Downloads page.

  2. Configure postgres credentials in app/config/config.json.

  3. Install node dependencies.

$ npm install
$ npm install babel-cli -g
$ npm install gulp-cli -g
$ npm install browserify -g
$ npm install mocha-phantomjs -g
  1. Run Express server.
$ npm start
  1. Run Gulp watchers to compile client JavaScript and Sass on save.
$ cd app/public/

$ gulp watch

Available Gulp tasks.

# Compile JavaScript.
$ gulp scripts

# Compile Sass.
$ gulp sass

# Compile JavaScript and Sass.
$ gulp build

# Compile JavaScript and Sass on file save.
$ gulp watch

# Open client only url in browser.
$ gulp browser
  1. Open app url in browser.
$ open http://localhost:8080/

Test

$ npm test

Docs

$ npm run docs

License

MIT.

About

Yolk/RxJS/Express/Postgres Todo App

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 99.4%
  • Other 0.6%