package
0.0.0-20240418184546-be833507a662
Repository: https://github.com/guicintra27/go.git
Documentation: pkg.go.dev

# README

GoJob Opportunities API 🇱🇷 - (Go to Brazilian version 🇧🇷)

GoJob Header

This project is a modern job opportunities API built using Golang. The API is powered by Go-Gin as a router, GoORM for database communication, SQLite as the database, and Swagger for API documentation and testing. The project follows a modern package structure to keep the codebase organized and maintainable.


Features

  • Introduction to Golang and building modern APIs
  • Development environment setup for creating the API
  • Using Go-Gin as a router for route management
  • Implementing SQLite as the database for the API
  • Using GoORM for communication with the database
  • Integrating Swagger for API documentation and testing
  • Creating a modern package structure for organizing the project
  • Implementing a complete job opportunities API with endpoints for searching, creating, editing, and deleting opportunities
  • Implementing automated tests to ensure API quality

Live Version

You can check the documentation and perform tests to the API by visiting the live version hosted at gopportunities.excalidevs.com.

Enviroment Variables

This project use an enviroment variable to run, check the .env.example file to see the exemple.

Makefile Commands

The project includes a Makefile to help you manage common tasks more easily. Here's a list of the available commands and a brief description of what they do:

  • make run: Run the application without generating API documentation.
  • make run-with-docs: Generate the API documentation using Swag, then run the application.
  • make build: Build the application and create an executable file named gopportunities.
  • make docs: Generate the API documentation using Swag.
  • make clean: Remove the gopportunities executable and delete the ./docs directory.

To use these commands, simply type make followed by the desired command in your terminal. For example, to run the project:

make run

Used Tools

This project uses the following tools:

  • Golang for backend development
  • Go-Gin for route management
  • GoORM for database communication
  • SQLite as the database
  • Swagger for API documentation and testing

Usage

After the API is running, you can use the Swagger UI to interact with the endpoints for searching, creating, editing, and deleting job opportunities. The API can be accessed at http://localhost:$PORT/swagger/index.html.

Default $PORT if not provided=8080.


License

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

# Packages

No description provided by the author
Package docs Code generated by swaggo/swag.
No description provided by the author
No description provided by the author
No description provided by the author