Skip to content

leobagua/delightful-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Delightful Recipes - A simple Sinatra + Contentful app

Environment

Ruby version: 2.7.1

Sinatra version: 2.0.8.1

Instructions

Running with Docker Compose

  • Set the Contentful credentials at the docker-compose.yml:

    • 1.1 CONTENTFUL_ACCESS_TOKEN
    • 1.2 CONTENTFUL_SPACE
  • After declaring the credentials, just run:

    • docker-compose up --build // to build and run
      or
    • docker-compose up // to run
  • The app will be available at: localhost:3000

  • To open the console (like rails console), just run:

    docker-compose exec kgs rake console

    or

    docker-compose exec kgs rake c 

Running without Docker

  • Install the dependencies, run:

    cd recipes
    bundle
  • Make a copy of the .env.example file

    cp .env.example .env
  • Set the Contentful credentials at the .env

    • 1.1 CONTENTFUL_ACCESS_TOKEN
    • 1.2 CONTENTFUL_SPACE
  • Run:

    bundle exec rackup
  • The app will be available at: localhost:3000

  • To open the console (like rails console), just run:

    rake console

    or

    rake c  

About

A simple application using Sinatra + Contentful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published