Skip to content
valentinRyckaertPublic

About

Cavavin is a Single Page Application (SPA) written in Ruby (Sinatra + GTK3) to organize your wine cellar

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cavavin

Presentation

Cavavin is a Single Page Application (SPA) written in Ruby to organize your wine cellar.

The application is made with a Sinatra web server and a GTK3 interface connected to it.

The advantage is that the app can be used as a regular web application or a desktop one.

Installation

Install Ruby and Bundler

See Ruby Documentation depending on your OS.

After that, install the Bundler gem:

gem install bundler

Clone Code

git clone https://github.com/valentinRyckaert/Cavavin.git
cd Cavavin

Install dependencies

Gems are installed in the rubydep/ directory. If you want to restart gem installation, just delete the folder.

bundle install

If the installation fails, especially on native extension building, you likely lack from some stuff like gcc or make packages. Search on the Internet.

Create database

Cavavin uses a CSV file as database:

touch database.csv # in the root directory

Create .env file

LAUNCH_TYPE=desktoponly
DB_PATH=database.csv
WEBAPP_IP=127.0.0.1
WEBAPP_PORT=4567

Launch

bundle exec ruby app.rb

Web app is accessible at http://localhost:4567.

Features to code

  • possibility to use SQL database
  • web security
  • translation french-english
  • dark theme
  • web to desktop security (token)
  • toogle for authentication or not
  • migrate to my own CSS/JS
  • scripts for install/launch (web, web/desktop, desktop only, linux, windows...)
  • logger
  • unit tests

About

Cavavin is a Single Page Application (SPA) written in Ruby (Sinatra + GTK3) to organize your wine cellar

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages