Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.
/ cookr Public archive

Cookr is a Rails app to manage cooking recipes organized by tags.

License

Notifications You must be signed in to change notification settings

LeBenLeBen/cookr

Repository files navigation

Cookr

Cookr is a simple Rails application to manage cooking recipes organized by tags.

Installation

Virtualization with Drifter

Vagrant and Virtualbox or Vagrant-LXS are required. Check Drifter documentation if necessary.

git clone --recursive git@github.com:LeBenLeBen/cookr.git
cd cookr
vagrant up

Wait for the provisioning to complete, then enter the box and start the server.

vagrant ssh
bundle exec foreman start

Go to cookr.lo.

Local installation

Ruby >= 2.5, PostgreSQL and Bundler are required.

git clone git@github.com:LeBenLeBen/cookr.git
cd cookr
bundle install

Setup database

Create the PostgreSQL user (default password is cookr):

createuser cookr -P

Create the PostgreSQL database:

createdb cookr

Copy the database configuration file (PostgreSQL):

cp config/database.example.yml config/database.yml

Update it to match your settings, then load the schema into the database:

rails db:migrate

Start the server

bundle exec foreman start

Go to localhost:5000.

Create a user

Registrations are disabled. You can use the console (rails c) to create a new user.

User.create(email: '', password: '', password_confirmation: '')

Enable search

The search work through Algolia. To enable it you need to:

  • Have an Algolia account
  • If the .env file doesn’t already exists, copy .env.example to .env
  • Fill in the variables ALGOLIASEARCH_APPLICATION_ID, ALGOLIASEARCH_API_KEY and ALGOLIASEARCH_API_KEY_SEARCH according to the values you’ll find in your Algolia dashboard
  • Index data with rake algoliasearch:reindex

Note: indexing will automatically create new Algolia indices in the form Model_environment, for example Recipe_development.

License

Cookr is licensed under GPL version 3.

About

Cookr is a Rails app to manage cooking recipes organized by tags.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published