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 yescodeGenerate a new app and get in there
yescode new todos
cd todosInstall the dependencies
bundle installSet the environment from the .env file
export $(cat .env | xargs)Start the server
bundle exec falcon serve --count 1 --bind http://localhost:9292Test it out with curl or you can just visit http://localhost:9292 in your browser
curl localhost:9292Quickstart with docker
Install the gem
gem install yescodeGenerate a new app and get in there
yescode new todos
cd todosBuild 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