antonkri97 / family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Family app

Features

  • People database
  • Family Tree

Stack

  • Remix
  • Postgres
  • Zod with strict typescript
  • Docker

Requirements

  • node 18
  • npm 9
  • docker

Setup

Dependency installation

  • npm install

Running database

  1. create .env file in root app folder (see .env.example file for reference)
  2. find username, password and port in docker-compose.yml postgres service
  3. create DATABASE_URL env in .env file with following properties "postgresql://username:password@address:port/postgres"
  4. create SESSION_SECRET env in .env file and copy value from .env.example
  5. running db instance > docker compose --profile db up
  6. initial migration for creating tables > npx prisma db push
  7. seed database > npx prisma db seed
  8. you are ready to go

Starting app

  • npm run dev

About


Languages

Language:TypeScript 96.5%Language:Dockerfile 1.6%Language:JavaScript 1.3%Language:Shell 0.5%Language:CSS 0.1%