Skip to content

teencore/omg-task

Repository files navigation

Table API

Backend API for working with table metadata, rows, columns, and cells.

Contents

Stack

  • Next.js
  • TypeScript
  • MongoDB + Mongoose
  • Zod
  • Pino
  • Jest

Project Structure

src/app/api/v1       Next.js API routes
src/lib/services     Business logic and validation flow
src/lib/repositories MongoDB access
src/lib/schemas      Zod request schemas
src/lib/types        Shared TypeScript types
src/lib/errors       API error classes
src/lib/logger       Pino logger
src/__tests__        Unit tests

Configuration

Create .env.local:

MONGODB_URI=mongodb://localhost:27017/omg-task
NODE_ENV=development
LOG_LEVEL=info

Run

Local:

npm install
npm run dev

Base URL:

http://localhost:3000/api/v1

Docker:

docker build -t table-api .
docker run --env-file .env.local -p 3000:3000 table-api

Documentation

Swagger docs: http://localhost:3000/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Contributors