A basic example of some React and Express code which lists bookmarks from Pinboard.
I've also used an icon from the Feather open-source icon pack.
- assets - Design-related source files
- docs - Project documentation files
- docs/todo.md - The project's task list
- public - Front-end image and HTML files that are also used in the build process
- server - Back-end API endpoint logic built using Express
- src/css - Styling files for the UI
- src/components - Front-end UI components built using React
- src/views - Front-end UI views built using React
- src/index.js - Front-end entry point used to initialise the UI via React
- license.md - The project's license file for details on the rights and limitations when using the code here in your own projects
- package.json - Node package configuration file that also includes shortcut commands in the
scripts
section - server.js - Node web server that uses Express to configure routes for both the back-end and front-end
npm install
cp -n example.env .env
Then edit the .env
file to use the appropriate configuration values for the application.
- Visit your Pinboard password page
- Save this in
.env
as the value of thePINBOARD_API_TOKEN
variable - Apply the changes to the application:
npm run serve
- Edit the
APP_DOMAIN
andAPP_PORT
values in.env
- Apply the changes to the application:
npm run serve
npm run build
npm run serve