Skip to content

API REST FULL with authentication, unit testing and email sender as well

Notifications You must be signed in to change notification settings

raulcv/raulcv-api-jwt_v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Rest Full with nodejs, included Authetication and E2E and unit testing

The purpose of this porject is to be used in the future as external authentication service

API Rest with NodeJS and Express, this project was built whit HTTP verbs:

  • GET
  • POST
  • PUT
  • DELETE
  • ...

It uses mongodb database to persist data.

This project uses the following technologies:

  • Node JS
  • Express
  • Express-validator
  • Moogose
  • Bcrypt
  • passport
  • passport-jwt
  • nodemailer
  • nodemailer-mailgun-transport
  • cors
  • cross-env
  • date-fns
  • dotenv
  • dotenv-safe
  • ejs
  • mocha
  • and more...

For running execute the following command:

It needs to be installed git and nodejs.

Run this project in your local machine

clone this repository, you need git installed in your machine ¡ how to install link GIT

In your local machine open some cmd, bash etc command line tool. Located where you will have your local repository. You can navigate with cd somepath/mydirectory etc.

git glone https://github.com/raulcv/raulcv-api-v1.git

Enter to your local repository created with git clone

cd raulcv-api-v1

create a .env or you can created it manually into your project folder

touch .env

Into .env file copy from envtext.txt file included, and change with your credentials

Finally run the API on dev mode 🤪

npm run dev

Open your browser and type localhost:8081

With ❤️ by raulcv

🤗 If you found helpful this repo, let me a star or ... 🐣

Buy Me A Coffee