-
Clone repository:
git clone https://github.com/shironxn/go-clean-arch
-
Navigate to the project directory:
cd go-clean-arch -
Setup environment variables:
cp .env.example .env
-
Check all available commands:
make help -
Run the application:
make run
-
Run in development mode using Air:
make dev
| Method | URL | Description |
|---|---|---|
| POST | /authors |
Create a new author |
| GET | /authors |
Get all authors |
| GET | /authors/{id} |
Get an author by ID |
| PUT | /authors/{id} |
Update an author by ID |
| DELETE | /authors/{id} |
Delete an author by ID |
| Method | URL | Description |
|---|---|---|
| POST | /books |
Create a new book |
| GET | /books |
Get all books |
| GET | /books/{id} |
Get a book by ID |
| PUT | /books/{id} |
Update a book by ID |
| DELETE | /books/{id} |
Delete a book by ID |