https://github.com/betterstack-community/fastify-blog
https://github.com/betterstack-community/fastify-blog
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/betterstack-community/fastify-blog
- Owner: betterstack-community
- Created: 2024-08-18T10:20:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T15:58:30.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T21:44:37.661Z (over 1 year ago)
- Language: CSS
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Testing the App
To get started with testing the app, follow these steps:
Install all necessary dependencies:
```bash
npm install
```
Create a `.env` file in the root directory of your project with the following contents:
```env
PORT=3000
LOG_LEVEL=info
NODE_ENV=development
DB_FILE=./blog.db
```
Start the server:
```bash
npm run dev
```
Once the server is running, open your browser and navigate to `http://localhost:3000/`.
By following these steps, you can set up and run the server, allowing you to access the application locally in your browser.