Skip to content

Instantly share code, notes, and snippets.

View MubashirWaheed's full-sized avatar

Mubashir Waheed MubashirWaheed

View GitHub Profile
@MubashirWaheed
MubashirWaheed / package.json
Last active January 2, 2023 22:46
This is a basic configuration for react typescript project extended on the already added eslint rule in the create react app project
"scripts":{
"lint": "eslint './src/**/*.{ts,tsx}'"
}
@MubashirWaheed
MubashirWaheed / mongodbSeed.js
Last active August 8, 2022 03:22
This script is used to seed the mongodb without any seeding package
const mongoose = require("mongoose");
const Items = require("./models/Items");
const Categories = require("./models/Categories ");
const { faker } = require("@faker-js/faker");
// connect with mongodb
const uri = "add you mongodb uri here";
const dbOptions = {
useNewUrlParser: true,
useUnifiedTopology: true,