Skip to content

antnruban/withoutrails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Withoutrails

Build Status

Description:

The main target, to create Rack application without Rails framework.

TODO at Current Time:

  • Custom logger in application config, with logfile support.
  • Test framework support.
  • Sources hot reloading (grape issue).
  • write README ;)
  • Provide smthg like decorator for +API+ class, when can be stored applications settings.
  • Apply DDD pattern.

Application HOWTO:

  • Run bundle in project root for gems installation.
  • For run application server, run at console: rackup, or RACK_ENV=test rackup with specific environment, as test in example. Default is development.

Docker Support:

  • Install Docker and insure, that service booted up.

  • To build Docker image, run at project directory:

    docker build -t withoutrails .

    where withoutrails is image name, feel free to use other name.

    Then run container with bash session:

    docker run --name withoutrails-app --rm -v $(pwd):/usr/src/ -itP withoutrails

    where:

    • --name container name, feel free to change it.
    • --rm container will be automatically removed after stop.
    • -v link project directory as volume, it means you make changes locally in your favorite editor and they are applying in container.
    • -itP run container with interactive session (bash in that case) and link ports from withoutrails image to host.
  • Execute certain bash command at container, bundle install for instance:

    docker exec -it withoutrails-app bash -c "bundle install"
    

About

The Rack WEB Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages