Veltrends - A website website where users can explore trending tech. news

veltrends

English | 한국어

Veltrends is a website where users can explore trending tech news.

URL

Tech Stack

Frontend

  • React
  • TypeScript
  • Remix
  • Styled Components
  • Tanstack Query
  • Sangte

Backend

  • Node.js
  • TypeScript
  • Fastify
  • Prisma
  • PostgreSQL
  • Swagger
  • Typebox
  • Algolia

Infrastructure

  • Terraform
  • AWS

Running on local environment

Backend

  1. Rename .env.sample to .env in packages/veltrends-server directory.
  2. Modify datasource db part in packages/veltrends-server/prisma/schema.client to use SQLite as below

datasource db {
  provider = "sqlite"
  url      = "file:./dev.db"
}

If you want to use PostgreSQL instead of SQLite, run PostgreSQL server with this link, set DATABASE_URL in .env file, and modify datasource db part in schema.prisma as below.

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}
  1. Delete packages/veltrends-server/prisma/migrations directory.
  2. Use yarn install command to install node_modules.
  3. Use yarn prisma migrate dev command to initialize database.
  4. Use yarn prisma generate command to generate Prisma Client.
  5. Use yarn dev command to run server. Server will run on port 8080. Go to http://localhost:8080/ to check if server is running .

API Documentation is available at http://localhost:8080/documentation.

Frontend

  1. Rename .dev.vars.sample to .dev.vars in packages/veltrends-client directory.
  2. Use yarn install command to install node_modules.
  3. Use yarn dev command to run server. Server will run on port 8788. Go to http://localhost:8788/ to check if server is running.

Bug Report, Feature Request, Questions

GitHub

View Github