Skip to content

Teiki web implementation in Generation I

License

Notifications You must be signed in to change notification settings

sonfam03/teiki-web

 
 

Repository files navigation

Teiki Web

This repository contains the Teiki web implementation in Generation I.

Docker

Build

We must prepare an .env before building the image.

# Multi Platform
docker buildx inspect teiki || docker buildx create --name teiki --node local --use
docker buildx build -t teiki/web:<tag> --platform=linux/amd64,linux/arm64 .
# Single Platform
docker buildx build -t teiki/web:latest --load .

Run

teiki-web depends on teiki-index and other services.

Prepare your own docker-compose.yml based on https://github.com/teiki-network/teiki-index/blob/main/docker-compose.yml, with an extra service for teiki-web:

web:
  image: teiki/web:latest
  build:
    context: .
    args:
      - COMMIT_SHA
  env_file:
    - .env.testnet
  environment:
    DATABASE_URL: postgres://postgres:teiki73114@postgres:5432/teiki
    IPFS_HTTP_API_ORIGIN: http://ipfs:5001
  ports:
    - "3000:3000"
  restart: on-failure
# Start (teiki-index and required services)
COMMIT_SHA=$(git rev-parse HEAD) docker-compose up -d --build --remove-orphans
# Check teiki-web logs
docker-compose logs -t -f web
# Stop
docker-compose down

Development

Install dependencies

npm install

Start the development server

npm run dev
# or
npm run dev:turbo

Feel free to connect: Website, Medium, Discord, Twitter, Telegram. We are very open to discussions, questions, and feedback 🌱.

About

Teiki web implementation in Generation I

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.8%
  • SCSS 9.7%
  • Other 0.5%