Cookr is a simple Rails application to manage cooking recipes organized by tags.
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.
Ruby >= 2.5, PostgreSQL and Bundler are required.
git clone git@github.com:LeBenLeBen/cookr.git
cd cookr
bundle install
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
bundle exec foreman start
Go to localhost:5000.
Registrations are disabled. You can use the console (rails c
) to create a new user.
User.create(email: '', password: '', password_confirmation: '')
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
andALGOLIASEARCH_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
.
Cookr is licensed under GPL version 3.