Code Monkey home page Code Monkey logo

nirho-test's Introduction

nirho-test

Variables de entorno

server:

DB_CONECTION = Conection string de la base de datos mongoDB

Rutas

server:

Direccion: http://localhost:3001

comandos:

		"scripts": {
		
			"npm prebuild": "rimraf dist",
			
			"npm build": "nest build",
			
			"npm format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
			
			"npm start": "nest start",
			
			"npm start:dev": "nest start --watch",
			
			"npm start:debug": "nest start --debug --watch",
			
			"npm start:prod": "node dist/main",
			
			"npm lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
			
			"npm test": "jest",
			
			"npm test:watch": "jest --watch",
			
			"npm test:cov": "jest --coverage",
			
			"npm test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
			
			"npm test:e2e": "jest --config ./test/jest-e2e.json"
		  },

endpoints:

	Crear Producto:
			ruta: /product/create
			method: post
			recibe: 
				"NameProduct":"Producto3",
				"Category":"Limpieza",
				"Description": "descripcion",
				"ProductQuantity": "80",
				"Status":"true"
				
	Obtener Productos:
        	ruta: /product/
			method: post
			recibe: 
				"page":"1",
				 "limit":"10"
	
	Obtener Producto por id:
			method: get
        	ruta: /product/:id
			
	Borrar producto:
			method: delete
        	ruta: /product/:id 
			
	Actualizar Producto:
			ruta: /product/:id
			method: put
			recibe: 
				"NameProduct":"Producto3",
				"Category":"Limpieza",
				"Description": "descripcion",
				"ProductQuantity": "80",
				"Status":"true"

Client

	Direccion: http://localhost:3000
	
	comandos: 
			"scripts": {
				"npm dev": "next dev",
				"npm build": "next build",
				"npm start": "next start"
			  },

nirho-test's People

Contributors

javisaacmv avatar

Stargazers

Daiane Barbosa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.