-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
app.get('/', (req, res) => { res.redirect('https://github.com/login/oauth/authorize?client_id={client_id}&state={state}'); })
app.get('/:code', async (req, res) => { const { code } = req.params; const response = await axios.post( 'https://github.com/login/oauth/access_token', { client_id: config.get('client_id'), client_secret: config.get('client_secret'), code, }, { headers: { Accept: 'application/json', // for a json response from github }, } ); console.log(response.data.access_token) })
I used the config package to hide my client_id and client_secret just in case of publishing to GitHub. You should do the same.
I believe this is clear enough. If you want to see how I used this check out the source code on Github.