- install Ruby
- download and install postgresql. https://www.postgresql.org/download
- Run the following command.
$ gem install rails
Ask for the database.yml and master.key files.
$ rails db:create
$ rails db:migrate
$ rails db:seed
- Follow the instructions in First-time setup.
- Get a copy of
database.yml
andmaster.key
. - Clone the repository.
- Run the following command to setup the project.
$ cd mini-parking-api
$ bundle install
- Copy the
database.yml
andmaster.key
to/config
. - Make sure that the postgresql is running. (In Ubuntu's case, run the following command)
$ sudo service postgresql start
- Run the following command to setup the database.
$ rails db:create db:migrate db:seed
- Run the application.
$ rails s
The server will run on localhost:3000.