Changeset 717ceae for backend/data.js


Ignore:
Timestamp:
08/30/22 14:13:43 (2 years ago)
Author:
Nace Gjorgjievski <nace.gorgievski123@…>
Branches:
master
Children:
16237c4
Parents:
b612ab1
Message:

connected db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • backend/data.js

    rb612ab1 r717ceae  
     1import bcrypt from "bcryptjs";
     2
    13const data = {
     4  users: [
     5    {
     6      name: "Nace",
     7      email: "nace@example.com",
     8      password: bcrypt.hashSync("123456"),
     9      isAdmin: true,
     10    },
     11    {
     12      name: "tester1",
     13      email: "tester@example.com",
     14      password: bcrypt.hashSync("123456"),
     15      isAdmin: false,
     16    },
     17  ],
    218  products: [
    319    {
    4       _id: "1",
     20      //_id: "1",
    521      name: "Арин",
    622      slug: "gejmerski-stol-arin",
     
    1834    },
    1935    {
    20       _id: "2",
     36      //_id: "2",
    2137      name: "Торин",
    2238      slug: "gejmerski-stol-torin",
Note: See TracChangeset for help on using the changeset viewer.