Giter VIP home page Giter VIP logo

denote-md-backend's Introduction

Denote MD back-end

Build status Vulnerabilities Closed Issues

Just a small piece for poor souls

Requirement

Make sure your Node.js is v10.23.0

Read this guideline before you begin Development Guideline

Installation

npm i --save-dev

This command will download all dependencies and development dependencies.

Configuration

You might need to copy example.env and rename them to .env and set necessary configuration.

Build

npm run build

To start development mode

npm run dev

This will start a development server, It will restart automatically if any TypeScript files in ./src/**/*.ts was changed.

To force nodemon restart, type rs then Enter

Before you commit your code

Please make sure you get no error from run this

npm run check

License

This software licensed under MIT License

denote-md-backend's People

Contributors

chiro-hiro avatar dependabot[bot] avatar dqtkien avatar trile avatar trinhlaosu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

denote-md-backend's Issues

Update user schema to match our new requirement

export interface IDocumentUser extends Document {
  uuid: string;
  alias: String;
  status: String;
  userId: String;
  created: Date;
  active: Boolean;
}

User schema/model might need to change since we changed our approach, we might need email field and profileId to link to an document of Profile schema.

We might need add Profile collection to store all user's detail information like:

  • First Name
  • Last Name
  • Description

We might allow user to add more field later.

Design device collection schema and device model

We need to add new Mongoose schema and Model to start implementing multi-devices login.

Device identity could be consider to be store in our MongoDB following fields:

  • IP Address
  • Device name or user-agent
  • Device uuid
  • Last active
  • Login time

Mux routing is not working

Mux routing is not working as expected

I created a Mux handler for document api, but it seems like requests are not going through mux handler and server always returns 404 for every request.

Code I used for creating a Mux

Mux.get(
  '/',
  undefined,
  async (reqData: RequestData): Promise<ResponseRecord> => {
    return {
      success: true,
      result: {},
    };
  },
);

Expectation:

  • Request can go through Mux handler

Actual:

  • Server returns 404 status for all requests

Create UX/UI login form

Including

  • Username:
    • Type: text
    • Component: input
    • Validator: 8-16 characters, not include special character.
  • Password:
    • Type: password
    • Component: input
    • Validator: 8-32 characters, must include at least 1 uppercase letter, 1 special character, 1 number.

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.