Example todos app with Vue.js, Express (with Passport and Github login) and CouchDB (with Nano).
The todos app will allow people to login using their Github credentials and create and save todos on a CouchDB database.
- CouchDB 2.0 (installation instructions here).
- Node 7+ (installation instructions here).
- Yarn 0.19+ (installation instructions here).
- Create a database named
todos
. - Add a member with some credentials for authentication and replace
DB_USER
andDB_PASS
on app.js with the correct values. - On Github go to https://github.com/settings/applications/new and create a new application with
http://localhost:3000/auth/github/callback
as theAuthorization Callback URL
. ReplaceGITHUB_CLIENT_ID
andGITHUB_CLIENT_SECRET
on app.js with the correct values (that github provides after creating the application).
- Clone this repo.
- From the root and using the command line run
yarn
to install the node dependencies (express, passport, nano, etc). - Then, run express with
node app
. - Visit the website on
http://localhost:3000
. - Relax.