Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1.25 KB

README.md

File metadata and controls

60 lines (50 loc) · 1.25 KB

README

Welcome to MonteCinema API Page

documentation

About the project!

The App uses multiple gems, You can find its list in Gemfile.

How to run an app?

Clone the project via command.

git clone https://github.com/KMosc/APITRY.git

Make sure You have your Ruby installed and its version equals 3.0.0

ruby -v

Install all needed gem files

bundle install

Database commands

### Initialize your rails databse
rails db:create

### Run database migration
rails db:migrate

### If you want sample datas, run
rails db:seed

Before you run the server, make sure your postgres and redis-sever are running, if not. Restart it

If you want your mailer to work.

https://support.google.com/accounts/answer/185833?hl=en

Look into /config/environments/ and initialize environment variables accordingly to email config.

Change default mailers in mailer files.

If you want to start server

# Development mode
rails s
# Production mode
rails s -e production

Testing

If you want to generate Coverage of the Tests

COVERAGE=true rspec spec