Skip to content

A minimalist Node.js & Express.js application with TypeScript, PostgreSQL as main database, and Redis for rate limiting.

Notifications You must be signed in to change notification settings

andy-viera/nodejs-express-app

Repository files navigation

Node.js & Express App

A minimalist Node.js & Express.js application with TypeScript, PostgreSQL as main database, and Redis for rate limiting. With CRUD operations for authors, categories, and books, following a basic RESTful API design.

Prerequisites

  • Node.js (v14 or higher)
  • Pnpm
  • Docker

Setup

  1. Clone the repository:
git clone https://github.com/andy-viera/nodejs-express-app.git
cd nodejs-express-app
  1. Install dependencies:
pnpm install
  1. Create the PostgreSQL database:
docker compose up -d
  1. Create a .env file in the root directory with the variables from the .env.example file.

  2. Start the development server:

pnpm run dev

The server will start on http://localhost:3000 (or the port specified in your .env file).

Testing

To run the tests, use the following command:

pnpm test

About

A minimalist Node.js & Express.js application with TypeScript, PostgreSQL as main database, and Redis for rate limiting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published