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.
- Node.js (v14 or higher)
- Pnpm
- Docker
- Clone the repository:
git clone https://github.com/andy-viera/nodejs-express-app.git
cd nodejs-express-app- Install dependencies:
pnpm install- Create the PostgreSQL database:
docker compose up -d-
Create a
.envfile in the root directory with the variables from the.env.examplefile. -
Start the development server:
pnpm run devThe server will start on http://localhost:3000 (or the port specified in your .env file).
To run the tests, use the following command:
pnpm test