Giter Site home page Giter Site logo

incrementor-eureka's Introduction

incrementor-eureka

Identifier incrementor created by Node.js, which provides WEB APIs. The consumer client of the APIs was built by using React.js.

How to use

Preconditions

  1. git is installed
  2. Node.js and npm are installed
  3. MongoDB is installed and running on localhost:27017

Install

git clone https://github.com/isheik/incrementor-eureka.git
cd incrementor-eureka
npm install
cd frontend
npm install

How to run

From the home directory of incrementor-eureka...

  • backend
cd backend
node server.js

NOTE: Currently backend server can only listen to port 1337

  • frontend (API consumer)
cd frontend
npm start

NOTE: Currently frontend server can only listen to port 3000

Provided WEB APIs

User Login (Require POST param: mail, password)

User Register (Require POST param: mail, password)

Get current identifier (Secured. Require POST param: token)

token can be obtained through login

Get next identifier (Secured. Require POST param: token)

token can be obtained through login

Reset identifier (Secured. Require POST param: resetval, token)

token can be obtained through login

Assumptions

  • User email address should be unique in this system, so registering the same email is not allowed.
  • this system does not allow uppercase email address. It is automatically converted to lowercase.
  • Invalid email address form is not allowed to register in this system.
  • If necessary, logout feature is implemented in consumer side. (The frontend SPA has it.)

Known Issues

  • This service has not been able to follow JSON API specs very well.

incrementor-eureka's People

Contributors

isheik avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.