- Go chi API framework
- Turso DB
- go-pkgz/auth for direct authentication
This project is a Go API built using the chi framework. It utilizes Turso DB as the database and go-pkgz/auth for direct authentication. The API provides various endpoints for interacting with the database and authenticating users.
To install and set up the project, follow these steps:
- Clone the repository:
git clone https://github.com/Mamenzul/go-api-starter.git
- Change to the project directory:
cd go-api-starter
- Install dependencies:
go mod download
- Set up the database: Turso quickstart
- Set up the database:
- Create a
.env
file in the project directory. - Add the following line to the
.env
file:DATABASE_URL=[url]?authToken=[token]
- Save the
.env
file.
- Create a
- Build and run the API:
make run
This project is licensed under the MIT License. Please see the LICENSE file for more details.