Skip to content

DevSkillsHQ/fullstack-boilerplate-ruby-vue

Repository files navigation

Fullstack Boilerplate

A backbone for your coding challenge.

Contents

  • Backend service - a Rails service with a /ping endpoint. Extend with your code.
  • Frontend app - a Vue 3/Vite app. Extend with your code.
  • E2E test suites - a backend and a frontend Cypress test suites. Extend with your tests.
  • Pipeline - a test Runner that executes the Cypress tests on push to a branch other than master/main.

Tech Stack

Backend

  • Ruby 3.1.2
  • Rails 7.0.3.1

Additional libs

  • sqlite3 (SQLite connection)
  • rack-cors (CORS support)

Frontend

  • Vue 3
  • Vite

Misc

  • Cypress
  • GitHub Actions

Getting started

  1. Make sure the required version of Ruby (2.7.0) is configured on your local env.
curl -sSL https://get.rvm.io | bash
rvm install 2.7.0
  1. Make sure npm & node are configured on your local env. You can download those distributions for your platform here

  2. Build your app.

npm install
npm run build # both Rails backend and Vue frontend
npm run build:backend # only Rails backend
npm run build:frontend # only Vue frontend
  1. Start your app.
npm install
npm run start # both Rails backend and Vue frontend
npm run start:backend # only Rails backend
npm run start:frontend # only Vue frontend
  1. Run the Cypress tests.
npm run test # run project tests under `cypress/integration`

Made by DevSkills.

Did you find this repo useful? Give us a shout on Twitter / LinkedIn.