Skip to content

This is a node js authorization project and a mongodb connection that can be used to jumpstart development of future new projects. The project uses the jwt token and manages user roles when authorizing and using certain functions.

Notifications You must be signed in to change notification settings

MaximusPython/authorization-project-on-node-js-and-connection-to-mongodb

Repository files navigation

УСТАНОВКА ПАКЕТОВ И ЗАВИСИМОСТЕЙ:

npm install express mongoose (модуль mongoose это модуль для упрощения работы с бд mongo db)
npm i -D nodemon (модуль для автоматического обновления сервера на этапе разработки)
npm install bcryptjs - команда для установки модуля для кеширования паролей
npm i express-validator - команда для установки модуля для валидации
npm install jsonwebtoken - команда для установки модуля для json токена


ИЗМЕНЕНИЯ в Package.json:

 создаем свои скрипты, и запуск на этапе разработки с помощью nodemon чтобы сервер автоматически обновлялся,
 nodemon не обходим как dev зависимость на этапе разработки.

"scripts": {
    "start": "nodemon index.js"
  },

About

This is a node js authorization project and a mongodb connection that can be used to jumpstart development of future new projects. The project uses the jwt token and manages user roles when authorizing and using certain functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published