-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.rb
30 lines (24 loc) · 797 Bytes
/
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'pry'
require 'sqlite3'
require 'slim'
require 'sinatra'
require 'sinatra/reloader' if development?
require 'twilio-ruby'
# @message = @client.account.messages.create({:to => "+12316851234",
# :from => "+15555555555",
# :body => "Hello there!"})
require_relative 'database/database_setup'
require_relative 'models/modules'
require_relative 'models/user'
require_relative 'models/post'
require_relative 'models/thread'
require_relative 'models/board'
require_relative 'helpers/main'
#controllers
require_relative 'controllers/accounts.rb'
require_relative 'controllers/board.rb'
require_relative 'controllers/main.rb'
require_relative 'controllers/thread.rb'
#enable sinatra sessions
enable :sessions
#binding.pry