GithubHelp home page GithubHelp logo

hives's Introduction

Hives

This is a small demo project in Ruby on Rails and Vue.js, where users can register hives and display the list of all hives registered.

Ruby on Rails API

The Ruby on Rails application has been configured in API mode, and provides a simple CRUD API for the "hives" resource.

In production it also serves the Vue.js frontend statically, that is built in the /public folder.

Vue.js Frontend

The Vue.js application handles the frontend and makes calls to the API using the native Fetch API. It is setup using Vite in the app/frontend folder.

A simple event emitter using mitt has been setup to allow simple communication between components.

Execution

In order to run the project in development, first install dependencies:

  • bundle install
  • cd app/frontend && npm install

Then, to execute the servers, you need to run:

  • bin/rails s runs the API server
  • cd app/frontend && npm run dev runs the frontend dev server

Tests

Ruby on Rails tests can be run using bin/rails test.

Deployment

The Vue.js app is automatically built in the /public folder when executing the assets:precompile rake task. This rake task is automatically executed when deploying to a service like Scalingo.

Development

Commits follow the Conventional Commits naming convention.

hives's People

Contributors

fklingler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.