Coder Social home page Coder Social logo

api-casa-verde's Introduction

Api projeto Casa Verde e-commerce

Ambiente de Desenvolvimento

  • npm install && npx prisma migrate dev && npm run dev

Build

  • npm run build

.ENV

DATABASE_URL=''

EMAIL = '[email protected]'

PASSWORD = 'password'

ADMIN_EMAIL = ['']

STRIPE_KEY = ""

WEBHOOKS_KEY = ""

/api

GET /plantas

GET /plantas/:id

  • req.params.id

GET /promo

POST /newsletter

  • req.body.email

DELETE /newsletter

  • req.body.email

POST /auth

  • req.body.credential

DELETE /auth

  • req.body.id

GET /userinfo/:userid

  • req.params.userid

POST /payment

  • req.body.cart: TCART
  • req.body.userId

GET /pedidos/:userId

  • req.params.userId

PUT /pedidos/:userId/cancel

  • req.body.session_id

PUT /pedidos/:userId/refound

  • req.body.payment_intent

/admin

GET /newsletter/send

  • req.query.adminId

POST /newsletter/send

  • req.body.adminId
  • req.body.subject
  • req.body?.text
  • req.body?.html

GET /plantas

  • req.query.adminId

POST /plantas

  • req.body.adminId
  • req.body.planta

DELETE /plantas

  • req.query.adminId
  • req.query.id

PUT /plantas

  • req.query.adminId
  • req.query.id
  • req.body.plantaAtualizada: Planta

GET /users

  • req.query.adminId

api-casa-verde's People

Contributors

danielalmeidafarias avatar

Stargazers

William Kelvin 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.