The main target, to create Rack application without Rails framework.
- 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.
- Run
bundlein project root for gems installation. - For run application server, run at console:
rackup, orRACK_ENV=test rackupwith specific environment, astestin example. Default isdevelopment.
-
Install
Dockerand insure, that service booted up. -
To build
Dockerimage, run at project directory:docker build -t withoutrails .where
withoutrailsis image name, feel free to use other name.Then run container with
bashsession:docker run --name withoutrails-app --rm -v $(pwd):/usr/src/ -itP withoutrailswhere:
--namecontainer name, feel free to change it.--rmcontainer will be automatically removed after stop.-vlink project directory as volume, it means you make changes locally in your favorite editor and they are applying in container.-itPrun container with interactive session (bash in that case) and link ports fromwithoutrailsimage to host.
-
Execute certain bash command at container,
bundle installfor instance:docker exec -it withoutrails-app bash -c "bundle install"