This is the backend API for the WriteApp, developed in Go using the Gin framework. This API handles the basic CRUD operations and follows industry standards for building RESTful APIs.
-
Clone the repository:
git clone https://github.com/Smartdevs17/writeapp_api.git cd writeapp_api
-
Install dependencies:
go mod tidy
-
Set up environment variables (see Environment Variables).
-
Start the server:
go run main.go
Describe how to use your API here. Include any special instructions or usage examples.
List and briefly describe the main API endpoints provided by your API. For detailed documentation, consider using tools like Swagger.
GET /api/users
: Retrieve all users.POST /api/users
: Create a new user.GET /api/documents
: Retrieve all documents.POST /api/documents
: Create a new document.
Describe the users
model here, including its attributes and relationships.
Describe the documents
model here, including its attributes and relationships.
List all the environment variables used by your API and their purposes. For example:
PORT
: Port number on which the server will run.DB_HOST
: Hostname for the database server.DB_PORT
: Port number for the database connection.
Feel free to fork this repository and contribute by submitting pull requests. Please follow the Contributor Covenant when making contributions.
This project is licensed under the MIT License - see the LICENSE file for details.