https://github.com/betterstack-community/async-hooks-demo
https://github.com/betterstack-community/async-hooks-demo
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/betterstack-community/async-hooks-demo
- Owner: betterstack-community
- License: apache-2.0
- Created: 2024-06-28T09:13:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T09:25:14.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T11:17:18.507Z (about 1 year ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Registration App
The application allows you to register users and store them in a simple, efficient in-memory storage system.
**Tutorial**: [Contextual Logging in Node.js with AsyncHooks
](https://betterstack.com/community/guides/scaling-nodejs/async-hooks-explained/)
## 🟢 Prerequisites
Ensure you have Node.js and npm installed on your machine.
## 📦 Getting started
- Clone this repository to your machine:
```bash
git clone https://github.com/betterstack-community/async-hooks-demo
```
- `cd` into the project folder and run `npm install` to download dependencies.
- Execute the command below to start the development server:
```bash
npm run dev
```
- Visit `http://localhost:3000/register?username=john`
in your browser to register the first user.
## âš– License
The code used in this project and in the linked tutorial are licensed under the [Apache License, Version 2.0](LICENSE).