module
0.0.0-20250109073654-22c8d3ca32f2
Repository: https://github.com/verlinof/softlancer-go.git
Documentation: pkg.go.dev
# README
Softlancer API
Softlancer is a web application where users can search for projects, apply for them, and log in or register using a Google account. This API is built using the Gin framework in Go, with a project structure inspired by Laravel.
Table of Contents
Features
- CRUD Projects for Admin
- CRUD Companies for Admin
- Search for projects.
- Apply for projects.
Project Structure
The project structure follows a pattern inspired by Laravel to keep the application organized and maintainable. The main components of the structure include:
/config
: Configuration files for the application./database
: Database connection and migration files./models
: Data models representing the database tables./routes
: API route definitions./controllers
: Business logic for handling requests./middleware
: Middleware for request handling, such as authentication./utils
: Utility functions and helpers.main.go
: The entry point of the application.
Setup and Installation
- Install the Dependencies
go mod tidy && go mod download
- Clone the repository
git clone https://github.com/verlinof/softlancer-go.git
- Run Migrations
go run cmd/migration/main.go
if you want to revert the migration just write this
go run cmd/migration/down/main.go
- Run Seeders (if needed)
go run cmd/seeders/main.go
- Run the Application
go run cmd/api/main.go
Or
air