The simplest way to use doc2git is on doc2git.repography.com.
If you want to run doc2git with your own Google OAuth credentials then you can clone this repo and run it locally or deploy it elsewhere.
There's only one setting to change, which is the Google OAuth client ID. This is configured in the Makefile.
To create your client ID, follow Google's instructions on Setting up OAuth 2.0. Note that since doc2git is a client-side app using the implicit flow, you can ignore the client secret which is generated as part of this process.
Contributions are welcome!
doc2git is a Next.js app using TypeScript. The important bits:
- ./src/pages/index.tsx
- ./src/steps/1-sign-in.tsx
- ./src/steps/2-generate.tsx
- ./src/steps/3-download.tsx
You'll need to create a client ID as above with the your localhost / development origins.
To run locally:
nvm install # Install/use the correct node version
npm install # Install dependencies
make dev # Run the dev server