Skip to content

RaoulSchipper/LemonadeStand

 
 

Repository files navigation

LemonadeStand

This project is a Ruby-on-Rails project. It contains a webstore with Devise user authentication and PostgreSQL database. The original idea was to create service like TakeAway, but with hobby chefs instead of restaurants. Market analysis showed that delivery was unfeasible and thus the project was discontinued.

No longer maintained since 2017, Okt 23

MVP Requirements:

  • rbenv (to install Ruby and manage Ruby versions)
  • Ruby 2.4.1
  • Rails 5.0.2

Install LemonadeStand (Linux)

Setting up the database

(Based on this tutorial)

  1. Let's get PostgreSQL
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib libpq-dev
  1. Create a PostgreSQL user
$ sudo -u postgres createuser -s [username]

Enter PostgreSQL console

$ sudo -u postgres psql

Set password

$ postgres=# \password [username]

Exit PostgreSQL console

$ postgres=# \q

Important: Be sure to remember your user and password

Setting up Ruby

  1. Install rbenv using this tutorial with step 1 to 5
  2. Install rbenv-vars
$ git clone https://github.com/rbenv/rbenv-vars.git $(rbenv root)/plugins/rbenv-vars
  1. Change directory to your working directory
$ cd [your path]
  1. Install Ruby
$ rbenv install 2.4.1
  1. Install our package manager 'Bundler'
$ gem install bundler
$ rbenv rehash

Setting up Rails

  1. Install Rails
$ gem install rails -v 5.0.2
$ rbenv rehash
  1. Update dependencies
$ bundle install
  1. Copy .rbenv-vars-sample to .rbenv-vars and fill the document. Secrets can be generated using rake secret
$ cp .rbenv-vars-sample .rbenv-vars
$ nano .rbenv-vars
  1. (Not always necessary) Edit in database.yml the fields database to match your database
  2. Create database and apply migrations
$ rake db:create
$ rake db:migrate
  1. Run server with bundle exec rails server

About

Just good food!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 73.7%
  • HTML 21.3%
  • CSS 3.3%
  • JavaScript 1.7%