Coder Social home page Coder Social logo

nest-js-starter's Introduction

Nest Logo

An API for use by Example

Description

An API for for use by Example

Documentation

API Docs

https://example.com/api-docs/index.html

App Docs

https://example.com/app-docs/index.htmlm

SDK Code Docs

https://example.com/sdk-docs/index.html

Commands

Installation

This project requires Docker

Running the app

Development

# Install dependencies
$ npm install

# Build containers
$ make dev-build
$ make dev-up

Note: this will run with --watch enabled, so it will automatically detect changes and auto-reload the environment

Production

$ npm run start:prod

Test

# integration tests
$ make dev-shell-node-worker

# Once inside the container
$ sh test.sh

TypeORM

See using the TypeORM CLI

# Create migration - name must be in PascalCase
npm run typeorm migration:create -- -n <NameOfMigration>

# Run migrations
npm run typeorm migration:run

# Create - entity name must be in camelCase and you must suffix the name with ".entity"
npm run typeorm entity:create -- -n <entityName>.entity

Creating Nest files

# Create controller
nest g controller controllers/<ControllerName>

# Create module
nest g module modules/<ModuleName>

# Create service
nest g service services/<ServiceName>

SDK

sdk-example

For any questions please reach out to First Last

Docker image

example Docker image

First you need to log in into GitHub's Docker registry. This will require you to log in using a PAT (personal access token) that has read:packages permissions.

# Docker login
docker login ghcr.io -u <GitHub username> -p <GitHub PAT>

Then you can pull the image

docker pull ghcr.io/username/example:latest

nest-js-starter's People

Contributors

actuallyconnor avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.