HugoDF / pocket-personal-access-token

A lightweight OAuth integration with the Pocket API to generate an access token for your personal account

Home Page:https://pocket-personal-access-token.glitch.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poket token creator

A lightweight OAuth integration with the Pocket API

Setup

Pre-requisites:

  • Docker for Desktop

Run docker-compose up in the root of the project.

It will bring up Postgres and the Express application server in development mode.

It binds the application server to localhost:3000, this can be re-mapped this by changing the first 3000 in 3000:3000 of ./docker-compose.yaml).

The default Docker CMD is npm start, ./docker-compose.yaml overrides this to npm run dev which runs the application using nodemon (auto-restart on file change).

Express API setup

The Express API is located in ./src/api.

Applications routes for resources are defined in ./src/api/index.js.

Global concerns like security, cookie parsing, body parsing and request logging are handled in ./server.js.

This application loosely follows the Presentation Domain Data Layering:

  • Presentation is dealt with in the ./src/api folder
  • Domain is dealt with in the ./src/modules folder.

About

A lightweight OAuth integration with the Pocket API to generate an access token for your personal account

https://pocket-personal-access-token.glitch.me/

License:MIT License


Languages

Language:JavaScript 89.5%Language:HTML 10.1%Language:Dockerfile 0.2%Language:CSS 0.1%