Skip to content

This is start kit for building JWT based RESTful API with Node.js, Express and MongoDB.

License

Notifications You must be signed in to change notification settings

theaungmyatmoe/restify

Repository files navigation

Restify

This is a start kit for building JWT based REST API with Node.js, Express and MongoDB which includes user authentication and session based authentication for web apps.

Features

  • JWT Authentication (API)
  • Session Authentication (Web)
  • User Authentication (Full Stack)

Tech Stack

Architecture

  • MVC
  • REST
  • Mono Repo

Directory Structure

.
├── apps
│   ├── backend
│   │   └── src
│   │       ├── config
│   │       ├── controllers
│   │       ├── middlewares
│   │       ├── models
│   │       ├── routes
│   │       ├── schemas
│   │       ├── services
│   │       └── utils
│   └── client
│       ├── app
│       │   ├── auth
│       │   │   ├── login
│       │   │   └── register
│       │   ├── hooks
│       │   └── utils
│       ├── pages
│       │   └── api
│       └── public
└── packages
    └── tsconfig

Installation

pnpm install

Development

pnpm dev

Production

pnpm build

License

MIT