Skip to content

thiagovasconcellos/crypto-c

Repository files navigation

Introduction

Folder structure

src
├── authentication
├── common
│   ├── constants
│   ├── decorators
│   │   ├── metadata
│   │   └── requests
│   ├── exceptions
│   ├── guards
│   ├── helpers
│   │   ├── exceptions
│   │   └── responses
│   ├── interfaces
│   ├── middlewares
│   │   └── models
│   ├── pipes
│   ├── serializers
│   │   ├── exceptions
│   │   └── responses
│   └── validations
├── config
│   ├── api
│   ├── app
│   ├── cache
│   ├── database
│   │   └── postgres
│   ├── queue
│   ├── session
│   └── storage
├── database
│   ├── factories
│   │   ├── addresses
│   │   └── users
│   ├── migrations
│   └── seeders
│       ├── addresses
│       └── users
├── core
│   ├── interceptors
├── jobs
│   ├── consumers
│   │   └── verification-mail
│   └── producers
│       └── verification-mail
├── mails
│   └── verification
├── models
│   └── users
│       ├── constants
│       ├── entities
│       ├── interfaces
│       └── serializers
├── providers
|   ├── cache
│   │   └── redis
│   ├── database
│   │   └── postgres
│   └── queue
│       └── redis
├── app.controller.ts
├── app.module.ts
├── app.service.ts
├── main.ts

Local environment

  • Install and configure a new PostgreSQL instance
  • Use credentials based on ormconfig.json
  • Create new database called "cryptoC"
  • Install dependencies

Run migrations

yarn typeorm migration:run
or
npx run typeorm migration:run

Run app itself

yarn start
or
npm run start

Create new migration

yarn typeorm migration:create <migration_name> -d src/database/migrations

Create a new resource ( CRUD <controller, module, entities, service & dto >)

nest g resource <name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages