-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Description
When I access http://localhost:3000 It just show
{}
and show GET / 404 0.395 ms - 2 in terminal.
Please help me, I want to get the full db.json content.
I try this tool with those steps:
- create
db.jsonwith
{
"posts": [
{
"id": 1,
"title": "json-server",
"author": "typicode"
}
],
"comments": [
{
"id": 1,
"body": "some comment",
"postId": 1
}
],
"profile": {
"name": "typicode"
}
}- run
json-server --watch ~/Desktop/AdJson/db.json
show message is
\{^_^}/ hi!
Loading /Users/z/Desktop/AdJson/db.json
Done
Resources
http://localhost:3000/posts
http://localhost:3000/comments
http://localhost:3000/profile
Home
http://localhost:3000
Type s + enter at any time to create a snapshot of the database
Watching...
Metadata
Metadata
Assignees
Labels
No labels