-
Notifications
You must be signed in to change notification settings - Fork 0
Local Installation
To clone this repository run:
git clone https://github.com/sposmen/cinema.git
It was developed in Ruby 2.5.6 (based on Heroku version)
By default the application points to postgres server and to DB's with the structure as:
cinema_<RACK_ENV>
Currently it has three environments development
, test
and production
.
If you don't have postgres installed in your machine there is an alternative option through docker-compose. To see how to install docker-compose see here
By running docker-compose up citus-master
you will have a temporarily postgres instance.
To avoid port conflicts, it is pointing to the 5434
port (remember that postgres default is 5432).
If you have already a postgres server, to configure you connections change them accordingly
in the config/environment
files.
To help to generate the schema there are been added some migrations.
- Ensure you have the DB create
rake db:create
(by default it handles thedevelopment
environment) - Run the migrations
rake db:migrate
When all previous items have been done. You can run the app through the command:
rackup
And the default endpoint will be: http://0.0.0.0:9292/v1
To run the test remember to have the DB prepared (RACK_ENV=test rake db:drop db:create db:migrate
)
Command: rspec
Made by Jaime Giraldo