Klivvr-OS / klivvr-community-be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kilvvr Community

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Download and install Nodejs
  • Download and install PostgreSQL & How to install it using Docker from Docker Hub
  • A web browser (e.g. Google Chrome, Mozilla Firefox, Microsoft Edge)
  • A text editor (e.g. Visual Studio Code, Sublime Text)
  • A platform for testing APIs like Postman

Installing

  1. Clone the repository to your local machine:
https://github.com/Klivvr-OS/klivvr-community-be.git
  1. Install required packages npm install
  2. Configure the environment variables, such as the database URL.
  3. npm run build then npm run start

Folder Structure

  • package.json
  • .gitignore
  • .prettierrc
  • tsconfig
  • .eslintrc => Eslint + Prettier
  • .env (not committed)
  • .env.test (commit it)
  • README.md
  • src
    • app.ts
    • index.ts
    • routes
      • [routeFileName].ts
      • index.ts
    • modules
      • [module name]
        • repos
          • [moduleNameRepo].ts
        • services
          • [moduleNameService].ts
        • index.ts (In which you export your modules' services)
      • index.ts (In which you export your modules)
    • database
      • Prisma
        • migrations
        • schema.prisma
      • client.ts

Tools & Technologies

  • TypeScript
  • Nodejs
    • Express.js
  • PostgreSQL
  • Prisma (ORM)

About


Languages

Language:TypeScript 97.1%Language:JavaScript 1.6%Language:PLpgSQL 1.2%