Skip to content

mulearnucek/ams-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ams-backend

This project was created with Better-T-Stack, a modern TypeScript stack that combines Fastify, and more.

Features

  • TypeScript - For type safety and improved developer experience
  • Fastify - Fast, low-overhead web framework
  • Bun - Runtime environment
  • Mongoose - TypeScript-first ORM
  • MongoDB - Database engine
  • Authentication - Better-Auth
  • Turborepo - Optimized monorepo build system

Getting Started

First, install the dependencies:

npm install

Database Setup

This project uses MongoDB with Mongoose.

  1. Make sure you have MongoDB set up.

  2. Update your apps/server/.env file with your MongoDB connection URI.

  3. Apply the schema to your database:

npm run db:push

Then, run the development server:

npm run dev

The API is running at http://localhost:3000.

Project Structure

ams-backend/
├── apps/
│   └── server/      # Backend API (Fastify)
├── packages/
│   ├── api/         # API layer / business logic
│   ├── auth/        # Authentication configuration & logic
│   └── db/          # Database schema & queries

Available Scripts

  • npm run dev: Start all applications in development mode
  • npm run build: Build all applications
  • npm run dev:web: Start only the web application
  • npm run dev:server: Start only the server
  • npm run check-types: Check TypeScript types across all apps
  • npm run db:push: Push schema changes to database
  • npm run db:studio: Open database studio UI

Releases

No releases published

Packages

 
 
 

Contributors