Hacked-2024-Backend

command module
v0.0.0-...-1f122b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

README

Hacked-2024-Backend

Description

I built this backend to support the roomates App, it was made using the following technologies :

  • Go
  • SQLX
  • Postgres
  • Echo Router

How to run

  • Clone the repo
  • Create a .env file in the root directory, and fill out variables based on .env.example
  • Run go run . in the root directory
  • The server will be running on port 8080

Endpoints

  • /Health - GET - Health check endpoint

  • /payments - GET - Fetches all payments

  • /users - GET - Fetches all users

  • /tasks - GET - Fetches all tasks

  • /lists - GET - Fetches all lists

  • /messages - GET - Fetches all messages

  • /items - GET - Fetches all items

  • /save/payment - POST - Saves a payment

  • /save/user - POST - Saves a user

  • /save/tasks - POST - Saves a task

  • /save/lists - POST - Saves a list

  • /save/messages - POST - Saves a message

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址