Skip to content

bnjtgly/mini-parking-api

Repository files navigation

Mini Park API

Prerequisites

Ruby Style Guide Ruby Style Guide

First-time setup

  1. install Ruby
  2. download and install postgresql. https://www.postgresql.org/download
  3. Run the following command.
$ gem install rails

Database and Master key

Ask for the database.yml and master.key files.

Setup Database

$ rails db:create
$ rails db:migrate
$ rails db:seed

Running app on localhost

  1. Follow the instructions in First-time setup.
  2. Get a copy of database.yml and master.key.
  3. Clone the repository.
  4. Run the following command to setup the project.
$ cd mini-parking-api
$ bundle install
  1. Copy the database.yml and master.key to /config.
  2. Make sure that the postgresql is running. (In Ubuntu's case, run the following command)
$ sudo service postgresql start
  1. Run the following command to setup the database.
$ rails db:create db:migrate db:seed
  1. Run the application.
$ rails s

The server will run on localhost:3000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published