Categorygithub.com/codewithed/go-social-media-backend
modulepackage
0.0.0-20240520112322-feba91e776c7
Repository: https://github.com/codewithed/go-social-media-backend.git
Documentation: pkg.go.dev

# README

go-social-media-backend

A social media backend built using Go

Technologies used

  • Go standard library
  • Chi router
  • PostgreSQL database
  • BCrypt
  • Docker
  • JWT tokens

Features include

  • User signup and login
  • Creating, deleting and updating posts
  • Liking and unliking posts
  • Following and unfollowing other users
  • Commenting and deleting comments
  • Viewing a user's profile (number of posts, followers, following)
  • Liking and unliking comments
  • CRUD endpoints for users, posts, following, likes
  • Certain actions require authorization to perform: For example:
    • A user has to be the author of a post to delete or update it.
    • Users have to create an account before they can like or comment on a post.

Local setup

git clone https://github.com/codewithed/go-social-media-backend.git
cd go-social-media backend

Prerequisites

  • Docker

Setup Postgres Database

make postgres

Build command

make build

Run command

make run

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FUNCTIONS FOR CREATING STRUCTS FROM SQL ROWS.
No description provided by the author
HELPER FUNCTIONS.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Post
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author