Skip to content

A json-server instance to provide data to the blog-react-redux application

Notifications You must be signed in to change notification settings

douglasmuraoka/blog-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Server

This is a blog server sample using json-server. This is the server-side only. The client-side can be found here.

Getting Started

First of all, you are going to need npm installed. Check here to install. This application was tested on a Node 10 environment.

After npm installed, install the application dependencies:

npm i
npm i -g json-server

Then initialize the json-server database and run the server by running:

npm run start

The server should be deployed on http://localhost:5000.

Features Overview

By initializing the database using npm run start, you will be creating three entities: posts, comments and users.

You can access them on /posts, /comments and /users.

Also, you can change how many entities are created by changing the POSTS_COUNT, USERS_COUNT and COMMENTS_COUNT on the index.js file.

About

A json-server instance to provide data to the blog-react-redux application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published