Skip to content

Mamenzul/go-api-turso-auth-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

Technologies Used

  • Go chi API framework
  • Turso DB
  • go-pkgz/auth for direct authentication

Description

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.

Installation

To install and set up the project, follow these steps:

  1. Clone the repository: git clone https://github.com/Mamenzul/go-api-starter.git
  2. Change to the project directory: cd go-api-starter
  3. Install dependencies: go mod download
  4. Set up the database: Turso quickstart
  5. 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.
  6. Build and run the API: make run

License

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

About

Go chi api + Turso db + go-pkgz/auth direct auth

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published