Skip to content

Fastify mongoose-pagination boilerplate for a web shop

Notifications You must be signed in to change notification settings

rodrigo1991/fastify-mongo-shop

Repository files navigation

Example project using fastify and mongoose

The following project is an example/boilerplate using fastify and its plugin system to "inject" mongoose

This is a fastify RESTful application to run a local server and insert/view some data on mongo

Execute example

Using node

To execute the example you need to have node installed on your system

With the project source code on your pc, you can execute it by going to the root folder of the project and doing the following steps:

1. Install dependencies

To install the dependencies you need to execute the following command

npm i

2. .env

Create a .env file on the root folder with the following value

MONGODB_URI=mongodb://shop:password@localhost:27017/shop

3. Execute project

npm run dev

The application will be executed in http://localhost:3000 (and it will fail in case of having the port 3000 busy)

Releases

No releases published

Packages

No packages published