Skip to content

EMCodeStudio/LCS_Admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

INSTALL NVM and Node

  • Install Setups Programs (Node and NVM)
  • nvm --version
  • nvm install latest (npm v10.2.0, node.js 21.1.0) or npm install -g npm@latest

Login to github.com/

  • $ git config --global user.name "John Doe"
  • $ git config --global user.email [email protected]

Creating Project app

  • npx create-payload-app
  • mongodb://127.0.0.1/db_lcs
  • Run npm install -g [email protected] to update!

add assets directory to server.ts

  • app.use('/assets', express.static(path.resolve(__dirname, './assets')));

Modules

VENTAS

  • Clients *
  • npm i @payloadcms/plugin-nested-docs
  • Orders
  • Reviews
  • Quotes

CONTENIDO

  • Images *
  • npm install @payloadcms/richtext-lexical
  • Tags *
  • Publications *
  • Portraits*

INVENTARIO

  • Products *
  • Services *
  • Subcategories *
  • Categories *

SISTEMA

  • Users *
  • Empresa *
  • payload-preferences

REST API QUERY

AUTHENTICATION

URLS

Login POST: http://localhost:3000/api/usuarios/login * Logout POST: http://localhost:3000/api/usuarios/logout* Unlock POST: http://localhost:3000/api/usuarios/unlock Refresh POST: http://localhost:3000/api/usuarios/refresh-token * Verify user POST: http://localhost:3000/api/usuarios/verify/{token} Current user GET: http://localhost:3000/api/usuarios/me Forgot Password POST: http://localhost:3000/api/usuarios/forgot-password Reset Password POST: http://localhost:3000/api/usuarios/reset-password

TEST LOGIN, BODY

CATEGORIES

URLS

TEST CREATE, BODY

  • { "Categoria": "Fabricaciones", "Estado": "published", }

STOP PROGRAM USING PORT 3000

  • CMD: netstat -ano | find "3000"
  • LISTENING 6236
  • TASK PID AND CLOSE or taskkill /F /PID 6236

Commands

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages