Skip to content

italoaalves/nodejs-crud-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-api-rest

Description

Rest APIs praticing project made with Node and Express

Features

  • Simple CRUD
  • JWT Athentication with time expiring token
  • JWT Authorization via middleware
  • Database ORM using sequelize

How to setup this project

Dependencies

  • node
  • docker
  • docker-compose

Getting started

# Clone this repository
git clone https://github.com/italoaalves/node-api-rest
cd ./node-api-rest

# Create a docker volume called restpsql or edit docker-compose.yml for the desired name
docker volume create --name=restpsql

# Create the database image using docker-compose
docker-compose -f "docker-compose.yml" up -d --build

# Install dependencies
npm install

# Setup your postgres dotenv settings according to the docker-compose.yml
# or your local database setup for development
echo "YOUR_ENV_VARIABLE=VALUE" > .env
# of course you can just use a text editor too '-'

# Start debugging
npm run dev

About

Rest API made with Node.js and Express. With sequelize ORM and JWT.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published