Specific
Simple Todo single page application using Ruby on Rails, Bootstrap and Vue.Js.
Features
- Created, edit and delete.
- Mark as completed.
- Due Date.
Requirements
- Docker installed and running.
Browser Support
Tested with Chrome x86_64 (Version 65.0.3325.181).
Production
-
Building.
$ docker build -t rails-specific-vuejs .
-
Running.
- Starts the service on http://locahost:8080.
SECRET_KEY_BASE
should be set to a strong cryptographically random string which can be generated byrails secret
in development mode.
$ docker run -d -p 8080:3000 \ -e RAILS_ENV=production \ -e SECRET_KEY_BASE=secret \ rails-specific-vuejs
Development
-
To use the docker container in development, the container needs to have the same user id and group id as the current user. The
build_dev
script sets this up automatically.$ ./build_dev
-
Runs the container and starts a shell (instead of the default entry point which is production mode). The application directory is shared into the container with a volume which means all changes to this directory will be reflected inside the container to
/opt/service
.$ ./run_dev
-
Starting the service which runs on http://localhost:3000.
service:/opt/service$ rails server
-
Generating
SECRET_KEY_BASE
for production mode.service:/opt/service$ rails secret