JorgeJOcampo / express-api-boilerplate

Boilerplate for building a modern REST API with Node.js, Express & MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ko-fi

¡Ayudame con un café ☕️!

Express ES2020 REST API Boilerplate

Boilerplate for building a modern REST API with Node.js, Express & MongoDB(WIP)

Features

  • ES2020 optional chaining & nullish operator support
  • Complete REST API Example (WIP)
  • CORS
  • Cookie & Body parser
  • Auth with jwt (WIP)
  • MongoDB(WIP)
  • Dockerized
  • Linting with Eslint & Prettier

Quick Start

With Node.js

Clone the repo:

git clone https://github.com/JorgeJOcampo/express-api-boilerplate your-project-name
cd your-project-name
rm -rf .git

Install dependencies:

yarn

Configure environment variables:

Use the .env.example to build your .env's files

Running Locally

yarn dev

Running in Production

yarn start

With Docker

# Build docker 
docker build -t express-api .

# Run docker
docker run -p 3000:3000 express-api

With docker-compose

docker-compose up

About

Boilerplate for building a modern REST API with Node.js, Express & MongoDB


Languages

Language:JavaScript 97.7%Language:Dockerfile 2.3%