Welcome to your new Raindeer application.
app- Application files; routes, nodes, events and datadb- Database migrations and seedsbin- Framework console scriptsconfig- Boot and configuration filespublic- Assets such as images, CSS and JS filesspec- Test the implementation of your application
Install gems and seed the database with:
bin/setup
config/database.rb connects to db/development.sqlite3 and runs the migrations in db/migrations on boot. Set DATABASE_URL to use another database.
Repositories in app/data query the database with LowData data expressions:
class PostsData < LowData
def latest(count: 10)
(Posts[:title, :body] + Users[:username]) ^ -Col[:created_at] * count
end
endVisit http://127.0.0.1:4133/posts to see them.
CSS and JS files in public are combined into public/app.css and public/app.js, as listed under assets in config/config.yaml:
assets:
app.css:
- style.css
- components/*
app.js:
- components/*Add a component by creating a file like public/components/card.css or public/components/card.js. The server rebuilds the bundles when a file changes. See Bundles for more.
Start your local server with:
rain server
Visit http://127.0.0.1:4133
