Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
/ Mock-Server Public archive

🏭 A POC version mock server (Refactoring)

Notifications You must be signed in to change notification settings

Tivcrmn/Mock-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mock Server

How to run

Redis in GCP

  1. start the vm
  2. open the ssh window
  3. run "redis-server" in one window
  4. run "redis-cli" in another window
  5. type "CONFIG SET protected-mode no" to disable protected-mode
  6. type "CONFIG SET requirepass password" to set password

Client

cd client/

npm i

npm start

Server

add default.js in config directory

module.exports = {
  port: 5000,
  redis: {
    host: "a.b.c.d",
    port: 6379,
    db: 0
  },
  db: "mongodb://xxx",
  tokenName: "access_token",
  tokenExpireSeconds: 60 * 60 // one hour
};
cd server/

npm i

npm start

About

🏭 A POC version mock server (Refactoring)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published