yescode
A full stack ruby mvc web framework
Learning
Check out the examples/
folder for some ideas on how to get started
Quickstart without docker
Install the gem
gem install yescode
Generate a new app and get in there
yescode new todos
cd todos
Install the dependencies
bundle install
Set the environment from the .env file
export $(cat .env | xargs)
Start the server
bundle exec falcon serve --count 1 --bind http://localhost:9292
Test it out with curl or you can just visit http://localhost:9292
in your browser
curl localhost:9292
Quickstart with docker
Install the gem
gem install yescode
Generate a new app and get in there
yescode new todos
cd todos
Build a docker image. The Dockerfile installs hivemind and watchexec and will restart the server on file changes using Procfile.dev
docker build -t todos .
Run the container
docker run --rm -it -v $(pwd):/home/app --env-file=.env -p 9292:9292 --name "todos" todos hivemind Procfile.dev