Skip to content

A small rails server to power the getguesstimate app

License

Notifications You must be signed in to change notification settings

Karol-Wi/guesstimate-server

 
 

Repository files navigation

README

Codeship Status for getguesstimate/guesstimate-server

Getting Started

Ubuntu

These instructions were tested on Ubuntu 21.10.

  1. Set up a Ruby version manager, such as Rbenv, and install the version of Ruby specified in .ruby-version.
  2. Install libpq: sudo apt install libpq-dev
  3. Inside the application root directory, install gems: bundle install
  4. Install PostgreSQL (note that the version may not match the production version): sudo apt install postgresql
  5. Start PostgreSQL: sudo service postgresql start
  6. Start a PostgreSQL console: sudo -upostgres psql
    1. Create the guesstimate-api user: create user "guesstimate-api" with password 'password';
    2. Allow the user to create databases: alter user "guesstimate-api" createdb;
  7. Create the necessary databases and run migrations: bundle exec rails db:setup

To see if things are working, try running the tests: bundle exec rspec

About

A small rails server to power the getguesstimate app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 96.9%
  • HTML 2.7%
  • Other 0.4%