Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugodf/pocket-personal-access-token
A lightweight OAuth integration with the Pocket API to generate an access token for your personal account
https://github.com/hugodf/pocket-personal-access-token
expressjs getpocket javascript nodejs oauth2 pocket-api
Last synced: 2 months ago
JSON representation
A lightweight OAuth integration with the Pocket API to generate an access token for your personal account
- Host: GitHub
- URL: https://github.com/hugodf/pocket-personal-access-token
- Owner: HugoDF
- License: mit
- Created: 2019-04-29T16:55:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:43:19.000Z (about 2 years ago)
- Last Synced: 2024-10-11T12:11:48.283Z (3 months ago)
- Topics: expressjs, getpocket, javascript, nodejs, oauth2, pocket-api
- Language: JavaScript
- Homepage: https://pocket-personal-access-token.glitch.me/
- Size: 1.2 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](./docker-compose.yaml)).
The default Docker `CMD` is `npm start`, [./docker-compose.yaml](./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](./src/api).
Applications routes for resources are defined in [./src/api/index.js](./src/api/index.js).
Global concerns like security, cookie parsing, body parsing and request logging are handled in [./server.js](./server.js).
This application loosely follows the [Presentation Domain Data Layering](https://www.martinfowler.com/bliki/PresentationDomainDataLayering.html):
- Presentation is dealt with in the `./src/api` folder
- Domain is dealt with in the `./src/modules` folder.