tusksi is a website update checker server made with Rails that can control by JSON API.
- Check updates for HTML documents and JSON documents
- Send notifications to Slack channel
HTML documents are processed by nokogiri gem. Please use a headless browser renderer like rendertron for SPA pages.
Setup your database server with rails commands before starting.
bundle install
bundle exec rails db:create
bundle exec rails db:schema:load
And create your first administrator user by rails console.
Api::AdminUserForm.new(
name: 'username',
user_level: AdminUser::USER_LEVEL_ADMINISTRATOR,
email: 'example_user@example.com',
password: 'your_safe_password_here'
).save!
Start API server and sidekiq server.
bundle exec rails server
bundle exec sidekiq