/connectopia

Connectopia API is a simple social media application, built in Go

Primary LanguageGoMIT LicenseMIT

Connectopia API

Connectopia API is a simple social media application, built in Go, that provides basic functionality similar to Twitter. It allows users to register, log in, create and manage publications, follow and unfollow other users, and update their profile information. The API is designed to demonstrate the implementation of essential features in a social media platform.

Features

  • User Management:

    • Register a new user
    • Log in and obtain authentication tokens
    • Retrieve user information by ID, name, or username
    • Update user profile and password
    • Delete user account
  • Publication Management:

    • Create new publications
    • Update and delete own publications
    • View publications in user's feed
    • Retrieve a single publication by ID
    • View all publications of a specific user
    • Like and unlike publications
  • Follow/Unfollow:

    • Follow and unfollow other users
    • Retrieve followers and following lists

Setup

  1. Clone the repository.
  2. Run go get to install dependencies.
  3. Set up the database and environment variables using the provided .env.example file.
  4. Run the application with go run main.go.

Dependencies

License

This project is licensed under the MIT License - see the LICENSE file for details.