@assetval/project
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Project

This is the Veritas Project Schema workspace.

Installation

yarn add @assetval/project

Usage

As a Class (Front End)

import { Project } from '@assetval/project';

const project = new Project();

As Schema (Back End)

import { {Project}Schema, Project } from '@assetval/project';
import { Model } from 'mongoose';

export const {Project}Model = model<Project>('{project}es', {Project}Schema);

As Validation (Back End)

import { {Project}ValidationSchema } from '@assetval/project';
import { z } from 'zod';
import { MagikRoutes } from '../middleware/RouterManager.js';

const ProfileRoute = MagikRoutes.getRouter('/profile');

ProfileRoute.post('/updateProject', {
  auth: 'ensureAuthenticated',
  validationSchema: z.object({
    body: {Project}ValidationSchema
  }),
  route: async (req, res): Promise<void> => {
    // Do something
  }
});

License

MIT

Authors

Contributing

Download the Schema repository and make sure you have the following installed:

  • asdf
  • NodeJS (ASDF)
  • PNPM (Corepack / Node / ASDF)
  • NX

Then run the following commands:

pnpm install

Readme

Keywords

none

Package Sidebar

Install

npm i @assetval/project

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

22.4 kB

Total Files

8

Last publish

Collaborators

  • abaccus
  • lekxy_