Skip to content

Smartdevs17/writeapp_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WriteApp API

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.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/Smartdevs17/writeapp_api.git
    cd writeapp_api
  2. Install dependencies:

    go mod tidy
  3. Set up environment variables (see Environment Variables).

  4. Start the server:

    go run main.go

Usage

Describe how to use your API here. Include any special instructions or usage examples.

API Endpoints

List and briefly describe the main API endpoints provided by your API. For detailed documentation, consider using tools like Swagger.

Example Endpoints:

  • 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.

Models

Users

Describe the users model here, including its attributes and relationships.

Documents

Describe the documents model here, including its attributes and relationships.

Environment Variables

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.

Contributing

Feel free to fork this repository and contribute by submitting pull requests. Please follow the Contributor Covenant when making contributions.

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages