AlexXin14 / comosus-server

server-side for A-Comosus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🍍 A-Comosus Server

Description

Nest framework TypeScript starter repository.

πŸƒβ€β™‚οΈ How to run this server?

Setting up development environment

At this stage, our docker-compose.yml is not ready yet, so please either find the database DATABASE_URL either by setting it up yourself or ask your project admin.

Once your atlas is created, create a .env file at project root directory and add you database connection string as DATABASE_URL

DATABASE_URL = YOUR_CONNECTION_STRING;

Starting the server

This project prefers using yarn as it's package manager.

# Installing dependencies
$ yarn

# Generate Prisma Client
$ yarn prisma generate

# Start the server in development mode with watch mode or...
$ yarn start:dev
 or
$ npm start:dev

# without watch mode
$ yarn start
or
$ npm start

# Or run this to start the server in production mode
$ yarn run start:prod
$ npm run start:prod

βœ… How to run tests for this server?

# unit tests
$ yarn run test
$ npm run test

# e2e tests
$ yarn run test:e2e
$ npm run test:e2e

# test coverage
$ yarn run test:cov
$ npm run test:cov

πŸ₯ž What is your tech stack?

Category Packages
Framework nest
BootStrapper @nestjs/cli
Scripting Language typescript
Web API graphql, @nestjs/graphql
Database ORM Client prisma, prisma/client
Encryption bcrypt
Authentication @nestjs/passport, passport, passport-local,@nestjs/jwt, passport-jwt
Localisation i18next
Validation class-validator,class-transformer
Logging
Testing jest, supertest
Code Control eslint, prettier, eslint-plugin-prettier
CI/CD GitHub Actions
undefined lodash

About

server-side for A-Comosus


Languages

Language:TypeScript 87.7%Language:Dockerfile 8.1%Language:JavaScript 4.2%