Skip to content

cs-24-sw-3-15/contract-service

Repository files navigation

contract-service

Ruby version

Ruby 3.3

Gem system dependencies

Install Guide

First install rbenv:

# MacOS
brew install rbenv mupdf nodejs
# Ubuntu Linux
sudo apt install rbenv libyaml-dev libvips-dev mupdf nodejs
# Arch Linux
sudo yay -S rbenv base-devel libyaml libvips mupdf tesseract-data-eng nodejs

Then install rbenv:

rbenv init
# Now follow its instructions to complete the installation.

Go into your project and write the following commands:

rbenv install 3.3.6
rbenv local 3.3.6

Run ruby --version to verify that its now on version 3.3.6.

Now go to Gem configuration to continue.

Gem configuration

Set up where gems should be installed, then install the dependencies.

bundle config set --local path vendor/bundle
bundle install

Database creation

Initializes and migrates the database (sqlite) to the latest revision available in the project.

bin/rails db:create
bin/rails db:migrate

Database initialization

For testing, there is some example data already generated for you in db/seeds.db. To use it write the following.

bin/rails db:seed

Further, there is a huge amount of premade labels inside credentials.yml.enc, which you can access if you have configured config/master.key. Ask frequent contributors for this file if you need these premade labels. These labels may also be used in production.

bin/rails db:custom_seed

Run Puma Development Server

bin/rails server

Deployment to Production Environment

See PRODUCTION.md

Things Left to do

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • ...

About

A Contract Management System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7