R
R
RxApi
Search…
R
R
RxApi
Introduction
Basic configuration
HTTP
Router
Routes/Controller
WEBSOCKETS
Events
DATABASE/ORM (KNEX)
Basic configuration
Migrations and cli
Powered By
GitBook
Basic configuration
1
module
.
exports
=
{
2
development
:
{
3
client
:
'sqlite3'
,
4
connection
:
{
5
filename
:
'./dev.sqlite3'
6
}
7
},
8
staging
:
{
9
client
:
'postgresql'
,
10
connection
:
{
11
database
:
'my_db'
,
12
user
:
'username'
,
13
password
:
'password'
14
},
15
pool
:
{
16
min
:
2
,
17
max
:
10
18
},
19
migrations
:
{
20
tableName
:
'knex_migrations'
21
}
22
},
23
production
:
{
24
client
:
'postgresql'
,
25
connection
:
{
26
database
:
'my_db'
,
27
user
:
'username'
,
28
password
:
'password'
29
},
30
pool
:
{
31
min
:
2
,
32
max
:
10
33
},
34
migrations
:
{
35
tableName
:
'knex_migrations'
36
}
37
}
38
};
Copied!
WEBSOCKETS - Previous
Events
Next - DATABASE/ORM (KNEX)
Migrations and cli
Last modified
1yr ago
Copy link