GoSnap is a powerful API built using the Go programming language that enables users to seamlessly upload, like, and comment on photos. With GoSnap, users can easily share their precious moments and interact with each other's photo uploads through a robust and user-friendly interface.
- Photo Upload: Users can upload their photos to share their special moments with others.
- Follow Users : Users can follow each other.
- Like and Comment: Users can like and comment on the photos uploaded by other users, fostering engagement and interaction within the community.
Explanation of the file structure:
/
/api/
: API Specs/Documentation./cmd/
: Command-line interface.main.go
: Main application entry point.
/database/
: Migration Files./internal/
: Internal application code./config/
: Configuration files./controller/
: Request handlers and route controllers./exception/
: Error handling utilities./helper/
: Helper functions and utilities./middleware/
: Middleware functions./repository/
: Data access layer./usecase/
: Business logic and use cases.
/model/
: Data models and structures.
To get started with GoSnap, follow these steps:
- Clone the repository:
git clone https://github.com/dihanto/gosnap.git
- Navigate to the project directory:
cd gosnap
- Install dependencies:
go mod tidy
- Configure the application by adding the files in the
/cmd/config.json
directory as per your requirements. - Run the application:
go run cmd/main.go
- The GoSnap API will be accessible at
http://localhost:8000
.
For detailed API documentation and specifications, please refer to the /api/
directory.
GoSnap is open-source software licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.
For any issues, bugs, or questions related to GoSnap, please create an issue on the GitHub repository.