Skip to content
/ sample-mock-api Public template

A simple mock api in Node Js using json-server and faker for generating data.

Notifications You must be signed in to change notification settings

ochomoswill/sample-mock-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Mock API

This is a basic starter application for mocking APIs. This is to help Front End Developers carry on without as the actual API is being developed.

Tools Used

Installing

clone the repo

git clone https://github.com/ochomoswill/sample-mock-api.git

install node modules

npm install

Folder Structure

After creation, your project should look like this:

sample-mock-api/    
    node_modules/
    src/
        models/
            generateEmployees.js
            generateEmployers.js
        generateMockDatabase.js
        index.js
    package.json
    README.md

Run the project

Run the below cmd to start the api

npm start

The Sample Mock API running

Acknowledgement

Great thanks to korydondzila:

About

A simple mock api in Node Js using json-server and faker for generating data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published