A starter template for a Rails+GraphQL API and Svelte frontend.
This product is a starter template for a Rails+GraphQL API and SvelteKit frontend. The backend is powered by Ruby on Rails and includes features such as a secure JWT & 2FA authentication system, Pundit for authorization, ActionCable for websockets, and Sidekiq for background processing. It also includes test frameworks like Rspec, Capybara, Rubocop, and Brakeman for code analysis. The frontend is powered by SvelteKit and uses Apollo for API requests. It provides routing, styling using Bootstrap, and websockets via ActionCableJS.
Backend:
Frontend:
To install the starter template, follow these steps:
Clone the Git repository:
git clone [repository-url]
Adjust the config/database.yml file according to your database configuration.
Install Ruby gems:
bundle install
Install frontend dependencies:
pnpm install
Run feature tests:
bin/rspec
Start the application:
foreman start
The product is a starter template for building a web application using Rails+GraphQL for the backend and SvelteKit for the frontend. It provides a wide range of features including authentication, authorization, websockets, background processing, and code analysis. The installation process involves cloning the repository, configuring the database, installing dependencies, running tests, and starting the application. Overall, this template provides a convenient and efficient starting point for developing web applications.