https://github.com/leosuncin/fastify-example
A simple REST API built with Fastify
https://github.com/leosuncin/fastify-example
api-rest ava fastify nodejs pactum
Last synced: 2 months ago
JSON representation
A simple REST API built with Fastify
- Host: GitHub
- URL: https://github.com/leosuncin/fastify-example
- Owner: leosuncin
- Created: 2021-10-03T00:17:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T06:18:31.000Z (over 4 years ago)
- Last Synced: 2025-06-04T00:55:53.294Z (about 1 year ago)
- Topics: api-rest, ava, fastify, nodejs, pactum
- Language: JavaScript
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚡ Fastify example
[](https://github.com/leosuncin/fastify-example/actions/workflows/ci.yml)
[](https://www.codefactor.io/repository/github/leosuncin/fastify-example)
[](http://www.gnu.org/licenses/gpl-3.0)
> A simple REST API implemented with Fastify
## Tech Stack
**Server:** Node, Fastify
**Test:** AVA, Pactum
## Run Locally
Clone the project
```bash
git clone https://github.com/leosuncin/fastify-example.git
```
Go to the project directory
```bash
cd fastify-example
```
Install dependencies
```bash
npm install
```
Start the server
```bash
npm start
```
## Running Tests
To run unit tests, run the following command:
```bash
npm test
```
To run e2e tests, first run the server in background and then run the following command:
```bash
npm run test:e2e
```
## License
Release under the terms of [GPL v3](http://www.gnu.org/licenses/gpl-3.0)