Skip to content

ismailkoc-malwation/NestProject

 
 

Repository files navigation

NOTE: It is not a completed project yet. I continue to improve.

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository. This is a simple project to learn NestJS. It uses MongoDB as database and JWT for authentication. It also uses Swagger for API documentation.

Requirements

  • NodeJS
  • MongoDB
  • Docker (optional)

Important

You must create an .env file in your local and add:

  • "JWT_SECRET_KEY"=your_secret_key,

  • "JWT_EXPIRES_IN"=30d,

  • "MONGO_CONNECTION_STRING"=mongodb://localhost:27017/your_database

$ npm install

Running the app after installation

# development
$ npm run start

# watch mode
$ npm run start:dev
# launch tests
$ npm run test

Running the app with Docker

If u want to run the app with docker, you must have installed docker before. If you haven't installed it yet, you can check the installation here on https://www.docker.com/products/docker-desktop/.

# build docker image
$ docker build -t my-node-app .

# run docker image
$ docker run -p 3000:3000 my-node-app

Documentation

You can access the Swagger API documentation at http://localhost:3000/api/document after running the application. You can see the API and request validations, you can test endpoints.

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • Other 1.0%