literatesnow / rails-specific-vuejs

Nothing to see here.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Building.

      $ docker build -t rails-specific-vuejs .
  2. Running.

    • Starts the service on http://locahost:8080.
    • SECRET_KEY_BASE should be set to a strong cryptographically random string which can be generated by rails secret in development mode.
      $ docker run -d -p 8080:3000 \
                   -e RAILS_ENV=production \
                   -e SECRET_KEY_BASE=secret \
                   rails-specific-vuejs

Development

  1. 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
  2. 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
  3. Starting the service which runs on http://localhost:3000.

      service:/opt/service$ rails server
  4. Generating SECRET_KEY_BASE for production mode.

      service:/opt/service$ rails secret

About

Nothing to see here.

License:The Unlicense


Languages

Language:Ruby 59.2%Language:JavaScript 29.9%Language:HTML 4.6%Language:Dockerfile 3.4%Language:Shell 2.1%Language:CSS 0.8%