- create a
.env
file for development, fill the database connection information - execute
npm run deploy
to deploy the database schema to database - execute
npm start
to start the server - execute
npm run test
to perform unit test
put database configuration in
environment
, for development, just use the.env
file.
.env
file example
CDS_MYSQL_USER=cdstest
CDS_MYSQL_PASSWORD=cdstest
CDS_MYSQL_DATABASE=cdstest
CDS_MYSQL_HOST=mysql
CDS_MYSQL_PORT=3306
{
"cds": {
"requires": {
"db": {
"kind": "mysql"
},
"mysql": {
"impl": "cds-mysql",
"models": [
"srv",
"db"
]
},
"auth": {
"impl": "srv/lib/auth.js" // customize
}
}
}
}
- Alice
- people_read
- Bob
- people_write
Passw0rD