To install dependencies, set up, and configure your application follow the latest instructions in the repository:
This screencast will walk you through cloning Jumpstart Pro's git repository, installing dependencies, and setting up your brand new application so you can easily merge updates from git.
Jumpstart Pro provides useful configurations to make development easier which are mentioned in more detail below.
Use the bin/dev
command to run your application's processes.
As usual, you'll need to run several processes in development.
rails server
- starts your Rails application server.yarn run build
- bundles Javascript using esbuildyarn run build:css
- bundles CSS using Tailwind CLI and PostCSSsidekiq
- or whatever background worker process you have configuredThese commands are defined in Procfile
and Procfile.dev
so they can be started and shutdown together.
You'll also need to make sure the PostgreSQL, Redis, etc servers are installed and running externally.
Overmind is a process manager that runs the processes defined in Procfile.dev
. Overmind is recommended because it allows you to join a process and interact with it.
Run your application with:
bin/dev
# Debugging with byebug, binding.irb, etc: connect to the `web` process to be able to input commands:
overmind connect web
# Then disconnect by hitting [Ctrl+B] (or your tmux prefix) and then [D].
# Restart a process without restarting all the other ones:
overmind restart web
# If something goes wrong, you can kill all running processes:
overmind kill
If you'd like to use Docker, Rails provides a devcontainer
that uses Docker Compose to set up dependencies for consistent development across any OS.
To use the devcontainer, you will need to open the directory in VS Code code .
and select "Reopen in Container" when prompted.
Once inside the Devcontainer, you can run Rails as normal using bin/dev
in VS Code's terminal. Ports will be forwarded from OS localhost to the devcontainer.
bin/dev
Then open http://localhost:3000
If you'd like to run Jumpstart Pro Rails on Windows, we recommend using WSL2. You can find instructions here: https://gorails.com/setup/windows
The Devcontainer is also a great option for development on Windows.