A Node.js application to backup Todoist data as JSON or CSV.
✨ Live demo ✨
-
Create a Todoist App. On localhost use
http://localhost:3000/todoist-export/
for both "App Service URL" and "OAuth Redirect URL". -
Copy
src/config.js.example
tosrc/config.js
and fill in the id and secret from the created app. -
Install required packages (you can use
npm
instead ofyarn
):
yarn install
- Start server:
yarn start
Refer to the API for more information.
Todoist redirects to a HTTPS version of your OAuth Redirect URL, even if a HTTP URL is defined. To retrieve your Todoist backup, you can change the URL from HTTPS to HTTP in the browser address bar after authorization. You can also start the app as HTTPS server, after creating a self-signed SSL certificate and defining your certificate data in config.js
:
ssl: {
cert: fs.readFileSync('./ssl/fullchain.pem'),
key: fs.readFileSync('./ssl/privkey.pem'),
passphrase: 'ssl certificate passphrase'
}
Copyright 2014-2021 Darek Kay [email protected]
This project and its contents are open source under the MIT license.