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
(Based on this tutorial)
- Let's get PostgreSQL
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib libpq-dev
- 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
- Install rbenv using this tutorial with step 1 to 5
- Install rbenv-vars
$ git clone https://github.com/rbenv/rbenv-vars.git $(rbenv root)/plugins/rbenv-vars
- Change directory to your working directory
$ cd [your path]
- Install Ruby
$ rbenv install 2.4.1
- Install our package manager 'Bundler'
$ gem install bundler
$ rbenv rehash
- Install Rails
$ gem install rails -v 5.0.2
$ rbenv rehash
- Update dependencies
$ bundle install
- Copy
.rbenv-vars-sample
to.rbenv-vars
and fill the document. Secrets can be generated usingrake secret
$ cp .rbenv-vars-sample .rbenv-vars
$ nano .rbenv-vars
- (Not always necessary) Edit in
database.yml
the fieldsdatabase
to match your database - Create database and apply migrations
$ rake db:create
$ rake db:migrate
- Run server with
bundle exec rails server