A simple Node.js application using:
- express-generator to create the Express application
- Passport.js and
passport-local
to authenticate our users - ibm_db and connect-db2 to connect and persist sessions in the database
git clone https://github.com/FMGordillo/express-dashdb-passport-example.git
Then you must create a .env
file and put your dashDb DSN in there, as this example:
DASHDB_DSN=DATABASE=XXX;HOSTNAME=XXX;PORT=50000;PROTOCOL=TCPIP;UID=XXX;PWD=XXX;
npm install
npm start
First you must create an IBM Cloud account
The package cfenv handles VCAP_SERVICES
to get the credentials. More info, coming soon
- Create
Deploy on IBM Cloud
button - Complete README
- Make an example for login/register handler