Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

node-auentication-api

NotificationsYou must be signed in to change notification settings

sandylib/node-typescript-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install packages should be separate for client and api.

cd api runnpm install

cd client runnpm install

running api has denpendence with mongodb and redis, requires docker installed in your local machine

in the root of your project runnpm run up will up mongodb, redis and api server

running client react app authentication

cd client runnpm install

if you are lost, here is the youtube link:

https://www.youtube.com/watch?v=Ujk3emNC6L0

node-auth

curl

curl -v  localhost:3000/api/v1/home --cookie'sid=s%3A_zHhKduFB-uggbg8vEJ4XlZoAlsDkRdT.nE%2FxxAvYDuBg22wJ%2BO7A8evKnrUllgg3Ar7gJq9NhEY'curl  POST localhost:3000/api/v1/login -H'Content-Type: application/json' \  -d'{"email": "sandy@gmail.com", "password": "Secret12"}'curl -v -X POST localhost:3000/api/v1/register -H'Content-Type: application/json' \  -d'{"email": "sandy@gmail.com", "name": "sandy", "password": "Secret12", "passwordConfirmation": "Secret12"}'curl -v -X POST localhost:3000/api/v1/register -H'Content-Type: application/json' \  --cookie'sid=s%3ACuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd.X0ErxoIqbgqLkW3wmO4QnTvxp55YDFafwKNJ%2Bmt5m0Y'

docker command

dockerexec -it node-au_db_1 mongo  -u admin -p secret authdockerexec -it node-au_cache_1 redis-cli -a secretscan 0// to see the session infomationget"sess:CuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd"// to see session expiredtimettl"sess:CuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd"

mongo

//querydb.users.find({}).pretty()//deletedb.users.deleteMany({})

About

node-auentication-api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp