- Sinatra - 2.0.7
- Sequel
- PostgresQL
- Puma
-
Use ruby version
2.6.3 -
In the root directory run command
bundle install -
Copy
.env.sampleinto.env -
Create manually database with name
sinatra_rest_api -
Run migrations with command
rake db:migrate
Inside root folder enter this commands in terminal:
rake shotInside root folder run next command:
rake cOr
rake consoleConsole give access to the models, and allow to make all CRUD operations with database.