This is a simple starting point for creating a new rails backend service with MongoDB. Besides, it includes:
- A
Dockerfile
for building a container - A
docker-compose.yml
file for setting up a development environment - Mongoid installed with basic setup
- Stripped-down rails base
{{ Project overview }}
{{ Public API documentation }}
{{ Deploy requirements }}
DB_HOST
NEW_RELIC_APP_NAME
NEW_RELIC_LICENSE_KEY
SENTRY_DSN
SENTRY_SERVICE
SENTRY_ENVIRONMENT
WEB_CONCURRENCY
number of puma workersMAX_THREADS
number of threads per workerPORT
default: 3000SECRET_KEY_BASE
You need docker to start developing, install the docker toolbox from this link.
The included docker-compose.yml
file describes all containers needed to run
the application in development. The bin/docker-run
script wraps
docker-compose
, rebuilding the container on each run. To run the whole
application:
./bin/docker-run
To run the tests:
./bin/docker-run rspec
To run a shell inside the container:
./bin/docker-run bash
Try to follow the ruby community style guide, and keep your code clean. To check your code for issues, run:
./bin/lint
Or:
./bin/docker-run bin/lint
Also, you may want to install a rubocop plugin/extension for your text editor.