Pawda/api

My personal API for my projects built with Go using modern net/http

★ 0Forks 0GitHub ↗Compare

Project website ↗

README

API

Personal API for my projects and services. Built with Go and a Node.js for the Open Graph . It provides small utility endpoints and integrations used across my projects.

Features

Currently available features/endpoints:

  • Auth with GitHub OAuth and JWT session management.
  • Content management for blog and project entries.
  • Content statistics, views, and likes tracking.
  • Guestbook with email notifications on new posts.
  • Pixiv user bookmarks retrieval.
  • Spotify and Jellyfin currently playing endpoints.
  • Real-time updates for Spotify and Jellyfin via Server-Sent Events (SSE).
  • Tools endpoints (IP address, IP info, HTTP headers).
  • Open Graph image generation (OG images).

Development

Steps to run the project locally:

  1. Clone the repository

    git clone https://github.com/ccrsxx/api
  2. Change directory to the project

    cd api
  3. Install dependencies

    go mod download
  4. Install Tools

    make setup-tools
  5. Set up environment variables Create a copy of the .env.example file and name it .env. Fill in credentials as needed.

    cp .env.example .env
  6. Run the app in development

    make dev

Contributors

ccrsxxrenovate[bot]

Issues