How would you structure a simple Sinatra app?
I'm making it right now and I want the app to have these features:
- The "app" is more of an admin dashboard for all the information inside it. Then another app will access the information via REST. I have not created the dashboard yet, just the getting of things from the database
- Sessions and authentication (have not implemented this yet)
- You can upload pictures, and other the other app can display those pictures
- I have created a testing file using RSpec
- Reports generation via Prawn
Currently the setup is just this:
app.rb
test_app.rb
because I have literally just the app and testing file. So far I have used Datamapper for the ORM, SQLite for the database. This is my first Ruby/Sinatra project, so any and all advice is welcome - what other libraries should I be using, should I put stuff like config.ru, etc.