Skip to content

ysfmrbt/blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hono.js + MongoDB on Node.js

Description

This is a simple REST API using Hono.js, MongoDB on Node.js.

Get started

Add your MongoDB connection string

In src/mongo.ts:

const uri = 'mongodb+srv://<username>:<password>@<cluster>.mongodb.net/<database>?retryWrites=true&w=majority';

Install dependencies and run the server

npm install
npm run dev

Test using your favorite HTTP client

HTTPie

http GET localhost:3000/posts

About

A simple blog API with HonoJS and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published