Skip to content

jsina/react-native-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

REACT-NATIVE AUTHENTICATION

Here is the sample project on both fornt-end and back-end to give you some hint for registering, logging, logout, check token on both side.

Technology I've been used

back-end

node.js

mogoose as the ORM

jsonwebtoken


Prerequisite

create an account on mlab for creating free mongo database or you could have mongo locally.

You have to create the .env file on the root of server project with followed data:

DB_USER= DB_PASS= DB_HOST= TOKEN_SEC=

DB_USER, DB_PASS, DB_HOST is for your database and TOKEN_SEC is for json web token

Running

at the root of project move to server directory. then run:

npm install

node starter.js

also for runnig client side you could use command:

yarn

react-native run-android Or react-native run-ios