Skip to content

REST API endpoint for front-end application (smart-lock web interface)

Notifications You must be signed in to change notification settings

kukiron/rest-api-server

Repository files navigation

REST API Server for ClayShop

Build Status Codacy Badge bitHound Dependencies bitHound Dev Dependencies

This is the API server providing the endpoint for user authorization of ClayShop, a sample smart-lock web interface built with react. Check the demo for the front-end app here.

Usage

To use the application, clone the repo & then:

> npm install
> npm run dev:server

The server will be served at localhost:3090.

Set MongoDB

You need to install & configure MongoDB to run this API server from local machine. After installing, run mongod from terminal & edit the index.js file:

// change the following line
mongoose.connect(process.env.MONGODB_URI)

// to the following
mongoose.connect("mongodb://localhost:your-port/db-name")

Now you are good to go!

Releases

No releases published

Packages

No packages published