https://github.com/vaalley/codex-backend
The backend API server for Codex
https://github.com/vaalley/codex-backend
api-rest backend golang
Last synced: over 1 year ago
JSON representation
The backend API server for Codex
- Host: GitHub
- URL: https://github.com/vaalley/codex-backend
- Owner: Vaalley
- License: mit
- Created: 2025-01-23T14:24:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T11:15:22.000Z (over 1 year ago)
- Last Synced: 2025-02-05T11:29:21.698Z (over 1 year ago)
- Topics: api-rest, backend, golang
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codex Backend
work needs to be done...
## Todo
- Add User Registering
- Add User Logging
## File Structure
.
├── main.go # Thin entry point (keeps initialization clean)
├── config/
│ ├── config.go # Load env vars, DB connection, etc.
│
├── api/
│ ├── routes.go # Route definitions
│ └── handlers/ # Group handlers by domain
│ ├── users.go # Handlers with direct DB access (for now)
│ └── games.go
│
├── models/ # Database models (structs)
│ ├── user.go
│ └── game.go
│
├── db/ # DB connection + direct queries
│ ├── mongo.go # Initialize connection
│ ├── users.go # Raw queries (e.g., GetUserByID)
│ └── games.go
│
├── utils/ # Helpers (e.g., JSON responses, validation)
│ └── http.go
│
├── .env
├── .env.example
├── go.mod
└── README.md