Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunny-unik/yup

Practise how to use `yup` for handle server side validations
https://github.com/sunny-unik/yup

boilerplate mongodb nodejs valiation yup

Last synced: 3 days ago
JSON representation

Practise how to use `yup` for handle server side validations

Awesome Lists containing this project

README

        

# yup

> Boilerplate for add validations using yup package on node.js app with express

## Why yup

Using yup for JSON schema validation because it is one of most high rated JSON validators.

## Setup Environment Variables

- Create a .env file.
- Copy ENVs from `.env.example` file
- Paste ENVs in `.env` file
- Replace your `App_Password` from your actual [App_Password](https://support.google.com/mail/answer/185833?hl=en) in `.env` file

## Steps for development

Install dependencies by running command

```bash
npm i
```

Start development server

```bash
npm run watch
```

## Start production server

```bash
npm start
```