Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sunny-unik/yup
- Owner: Sunny-unik
- Created: 2022-08-17T18:51:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T16:01:45.000Z (11 months ago)
- Last Synced: 2023-12-06T17:27:14.545Z (11 months ago)
- Topics: boilerplate, mongodb, nodejs, valiation, yup
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```