Skip to content

Commit

Permalink
chores: uniform docs/package.json (#46)
Browse files Browse the repository at this point in the history
* docs

* duplicated license

* uniform package.json
  • Loading branch information
Eomm committed Apr 16, 2023
1 parent b3ce022 commit 4f5346e
Show file tree
Hide file tree
Showing 34 changed files with 237 additions and 197 deletions.
4 changes: 2 additions & 2 deletions Chapter 1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Before running the code examples, you need to install the dependencies running `

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples,
you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
9 changes: 7 additions & 2 deletions Chapter 1/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@packt/accelerate-web-development-with-fastify-chapter-1",
"version": "2.0.0",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 1, published by Packt",
"private": true,
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand All @@ -16,7 +17,11 @@
"node": "^18.0.0"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/PacktPublishing/Accelerate-Web-Development-with-Fastify/issues"
Expand Down
21 changes: 0 additions & 21 deletions Chapter 10/LICENSE

This file was deleted.

3 changes: 2 additions & 1 deletion Chapter 10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ npm start

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples, you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
11 changes: 8 additions & 3 deletions Chapter 10/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "chapter-10",
"name": "@packt/accelerate-web-development-with-fastify-chapter-10",
"version": "1.0.0",
"description": "Deployment and Process monitoring for a healthy application",
"description": "Accelerate Web Development with Fastify - chapter 10, published by Packt",
"private": true,
"main": "app.js",
"directories": {
"test": "test"
Expand All @@ -19,7 +20,11 @@
"mongo:stop": "docker container stop fastify-mongo"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"dependencies": {
"@fastify/autoload": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions Chapter 11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ Before running the code examples, you need to install the dependencies running `

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples,
you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
11 changes: 8 additions & 3 deletions Chapter 11/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "chapter-11",
"name": "@packt/accelerate-web-development-with-fastify-chapter-11",
"version": "1.0.0",
"description": "Meaningful Application logging",
"description": "Accelerate Web Development with Fastify - chapter 11, published by Packt",
"private": true,
"main": "app.js",
"directories": {
"test": "test"
Expand All @@ -15,7 +16,11 @@
"dev": "npm run start -- --watch --pretty-logs --debug"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"dependencies": {
"fastify": "^4.2.0",
Expand Down
11 changes: 8 additions & 3 deletions Chapter 12/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"name": "chapter-12",
"name": "@packt/accelerate-web-development-with-fastify-chapter-12",
"version": "1.0.0",
"description": "",
"description": "Accelerate Web Development with Fastify - chapter 12, published by Packt",
"private": true,
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Matteo Collina <hello@matteocollina.com>",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"dependencies": {
"@fastify/autoload": "^5.4.1",
Expand Down
21 changes: 0 additions & 21 deletions Chapter 13/LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions Chapter 13/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Before running the code examples, you need to install the dependencies running `

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples,
you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
10 changes: 7 additions & 3 deletions Chapter 13/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "chapter-13",
"name": "@packt/accelerate-web-development-with-fastify-chapter-13",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 13, published by Packt",
"private": true,
"description": "My first Fastify application",
"main": "app.js",
"directories": {
"test": "test"
Expand Down Expand Up @@ -32,7 +32,11 @@
"clinic:bubble": "clinic bubble --on-port 'autocannon -d 20 -c 100 http://localhost:3000/todos' -- node index.js"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"dependencies": {
"@fastify/autoload": "^5.3.1",
Expand Down
23 changes: 23 additions & 0 deletions Chapter 14/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Chapter 14 - Developing GraphQL API

In this chapter, you will learn how to incorporate GraphQL into your Fastify application using a specialized plugin.
As GraphQL becomes increasingly popular, more and more APIs are being built with this query language.
By using Fastify's unique architecture and avoiding common mistakes, you can take full advantage of GraphQL in your application.

## How to use this folder?

In this folder you will find the source code of the chapter.
The filenames are the same as the chapter's sections.

You can run the chapter's code by starting the application:

```bash
node <filename>
```

Before running the code examples, you need to install the dependencies running `npm install`.

## Trouble?

If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
11 changes: 8 additions & 3 deletions Chapter 14/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "chapter-14",
"name": "@packt/accelerate-web-development-with-fastify-chapter-14",
"version": "1.0.0",
"description": "",
"description": "Accelerate Web Development with Fastify - chapter 14, published by Packt",
"private": true,
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"dependencies": {
"@nearform/sql": "^1.9.2",
Expand Down
25 changes: 25 additions & 0 deletions Chapter 2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Chapter 2 - Plugin System and Boot Process

You will learn the importance of Fastify plugins for developers, highlighting their role in achieving reusability, code sharing, and proper encapsulation between Fastify instances.
The chapter focuses on the declaration and implementation of a simple plugin, gradually adding more layers to explore their interaction and dependency management.

The example we will use is a simple test routes to become confident with the Fastify's syntax and execution, so HAVE FUN!

## How to use this folder?

In this folder you will find the source code of the chapter.
The filenames are the same as the chapter's sections.

You can run the chapter's code examples by executing:

```bash
node <filename>
```

Before running the code examples, you need to install the dependencies running `npm install`.

## Trouble?

If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
9 changes: 7 additions & 2 deletions Chapter 2/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@packt/accelerate-web-development-with-fastify-chapter-2",
"version": "2.0.0",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 2, published by Packt",
"private": true,
"type": "commonjs",
"scripts": {
"lint:fix": "standard --fix",
Expand All @@ -15,7 +16,11 @@
"node": "^18.0.0"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/PacktPublishing/Accelerate-Web-Development-with-Fastify/issues"
Expand Down
4 changes: 2 additions & 2 deletions Chapter 3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Before running the code examples, you need to install the dependencies running `

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples,
you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
7 changes: 6 additions & 1 deletion Chapter 3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@packt/accelerate-web-development-with-fastify-chapter-3",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 3, published by Packt",
"private": true,
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand All @@ -16,7 +17,11 @@
"node": "^18.0.0"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/PacktPublishing/Accelerate-Web-Development-with-Fastify/issues"
Expand Down
24 changes: 24 additions & 0 deletions Chapter 4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Chapter 4 - Exploring Hooks

This chapter explains how Fastify is different from other web frameworks because it uses hooks instead of middleware.
Mastering these hooks is essential for building stable and production-ready server applications.
The chapter provides an overview of the hooks and the lifecycle of Fastify applications.

## How to use this folder?

In this folder you will find the source code of the chapter.
The filenames are the same as the chapter's sections.

You can run the chapter's code examples by executing:

```bash
node <filename>
```

Before running the code examples, you need to install the dependencies running `npm install`.

## Trouble?

If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
9 changes: 7 additions & 2 deletions Chapter 4/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@packt/accelerate-web-development-with-fastify-chapter-4",
"version": "2.0.0",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 4, published by Packt",
"private": true,
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand All @@ -16,7 +17,11 @@
"node": "^18.0.0"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/PacktPublishing/Accelerate-Web-Development-with-Fastify/issues"
Expand Down
4 changes: 2 additions & 2 deletions Chapter 5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ Before running the code examples, you need to install the dependencies running `

## Trouble?

If you encounter any problems while reading the chapter or while running the code examples,
you can ask for help on the [official Discord chat](TODO) TODO LINK
If you face any difficulties while reading the chapter or while trying out the code examples, feel free to ask for assistance via the [official Discord chat](https://discord.com/channels/725613461949906985/1096783084633985074).
However, make sure to join the [Fastify server](https://discord.gg/fastify) beforehand.
7 changes: 6 additions & 1 deletion Chapter 5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@packt/accelerate-web-development-with-fastify-chapter-5",
"version": "1.0.0",
"description": "Accelerate Web Development with Fastify - chapter 5, published by Packt",
"private": true,
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand All @@ -16,7 +17,11 @@
"node": "^18.0.0"
},
"keywords": [],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"contributors": [
"Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"Maksim Sinik <maksim.sinik@gmail.com> (https://github.com/fox1t)",
"Matteo Collina <hello@matteocollina.com> (https://github.com/mcollina)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/PacktPublishing/Accelerate-Web-Development-with-Fastify/issues"
Expand Down
Loading

0 comments on commit 4f5346e

Please sign in to comment.