Cautious Memory is a Go-based web application designed to manage profiles and their associated fields and subfields. It provides a RESTful API to perform CRUD operations on these entities, leveraging Golang's robustness and efficiency.
- CRUD operations for profiles.
- Management of associated fields and subfields.
- RESTful API endpoints.
- PostgreSQL database integration.
- Use of GORM for ORM and Gin for HTTP routing.
- Go (Version 1.16 or later)
- PostgreSQL
- Set up environment variables for database connection:
POSTGRES_USER
POSTGRES_PASSWORD
POSTGRES_DB
POSTGRES_HOSTNAME
POSTGRES_PORT
- Clone the repository:
git clone https://github.com/joe5saia/cautious-memory.git
- Navigate to the project directory:
cd cautious-memory
- Install Go dependencies:
go mod tidy
Run the application using the following command:
go run cmd/main.go
The server will start, typically on http://localhost:8080
.
Swagger documentation is available at http://localhost:8080/swagger/index.html
.
To generate the Swagger documentation, run the following command:
swag fmt
swag init -g cmd/main.go --parseInternal --parseDependency
Swagger documentation is generated using comments in the code. For more details see the Swaggo Documentation.
Contributions to Cautious Memory are welcome! Please follow these steps:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
Distributed under the MIT License. See LICENSE
for more information.
Your Name - Joe Saia Project Link: https://github.com/joe5saia/cautious-memory