Skip to content
/ soladi Public

The project name stands for "SOlidarische LAndwirtschaft DIgital". Main purpose of this project is to create an end to end solution to manage a solawi (https://de.wikipedia.org/wiki/Solidarische_Landwirtschaft).

Notifications You must be signed in to change notification settings

SoLaDi/soladi

Repository files navigation

SoLaDi

This is a software designed to make the management of a solidaric agriculture community easier.

Build status:

CircleCI

development

prepare the stage (MacOS)

brew install rbenv nvm

rbenv install 3.0.5
rbenv global 3.0.5

nvm install v12.22.7
npm install --target_arch=x64

setup NVM to switch automatically to .nvmrc version

https://github.com/nvm-sh/nvm#zsh

install dependencies

bundle install
yarn install

# if no yarn for current node version
npm install --global [email protected]

prepare local dev db

Create db and seed some testdata.

rake db:migrate
rake db:seed

run

rails server

goto: http://localhost:3000

login if started locally

There is a seeded user you can use to login:

Username: [email protected] / Password: supersicher

Hints

Test email delivery and templates

https://mailtrap.io offers a free account and directly after registration you see how to configure rails to use it.

Annotate model with attributes

annotate --models
annotate --routes

Production deployment

DB migration

docker exec -it my-app-container bash
/app/scripts/db_migrate.sh

Create a user

docker exec -it my-app-container bash
/app/scripts/console.sh

User.create(:email => "my-email", :password => 'my-password', :password_confirmation => 'my-password')

Release management

CircleCi builds the master branch and creates and uploads a docker image with the respective build number. That's for now what we use. There are no specifically versioned releases.

About

The project name stands for "SOlidarische LAndwirtschaft DIgital". Main purpose of this project is to create an end to end solution to manage a solawi (https://de.wikipedia.org/wiki/Solidarische_Landwirtschaft).

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •