NodeJwtAuth
No description available
Install / Use
/learn @KhalilMeziane/NodeJwtAuthREADME
Stateful authentication with json web token
Build Authentication system(RestApi) using express js, mongodb and redis
Project Structure
┌ src
├─ api
├── components
├─── auth
├──── controller.js
├──── model.js
├──── route.js
├──── service.js
├── middlewares
├─── auth_middleware.js
├── app.js
├── routes.js
├─ config
├── logger.js
├─ helpers
├── db_helper.js
├── jwt_helper.js
├── redis_helper.js
├─ server.js
└ .eslintrc.json
Usage
These instructions will get you a copy of the project up and running on your local machine
Requirement
How To Use
From your command line, first clone the repository into your local machine:
# Clone this repository
$ git clone https://github.com/MezianeKhalil/NodeJwtAuth.git
# Then go into the repository
$ cd NodeJwtAuth
# Then remove current remote repository
$ git remote remove origin
Install the dependencies:
# Install with NPM
$ npm install
Specify your target port:
# In the .env file
port = 3000
DB_URI = 'mongodb://localhost:27017/NodeJWTAuth'
ACCESS_TOKEN_SECRET = 'your key'
REFRESH_TOKEN_SECRET = 'your key'
REDIS_HOST = 6379
REDIS_PORT = '127.0.0.1'
Lastly launch the Project:
# Launch with NPM
$ npm run dev
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
