GithubHelp home page GithubHelp logo

resinas-botanicas-back's Introduction

resinas-botanicas-back

Resinas Botânicas Backend is a test ecommerce application currently under development. To use the frontend, please visit this repository and follow the instructions in the README.md file.

About | Technologies | Installation Guide | How to Run | API Endpoints

About

This project is a simple application that meets the needs of Resinas Botânicas virtual store (@resinasbotanicas on Instagram).

Technologies

The project is built using the following technologies:

Node.js | Express.js | PostgreSQL | Prisma | Joi | Jsonwebtoken | Bcrypt | Stripe | Typescript | Jest | Supertest | Eslint | Prettier | Brazilian-Utils | Faker-js

Installation Guide

To install and run the project on your local machine, please follow the steps below:

  • Clone this repository
  • Run npm i to install all dependencies

How to Run

Locally

  • Create a development PostgreSQL database with any name you like
  • Create a .env.development file based on the .env.example file
  • Run dev:migration:run to run all migrations
  • Run dev:seed to seed the database
  • Run npm run dev to start the local server

Integration tests

  • Create a test PostgreSQL database with any name you like.
  • Create a .env.test file as in .env.example file
  • Run test:migration:run to run all migrations
  • Run npm run test to run the tests once
  • Run npm run test:watch to run the tests each time the code is saved

API Endpoints

The following API endpoints are available in the project:

HTTP Method Endpoint Description
POST /users/signup Register a new user
POST /users/signin Login an existing user
GET /users/profile/:email Get the user information for a given email address
GET /categories List all available product categories
GET /products/latest List the six most recently added products
GET /products/:id Get the product information for a given product ID
GET /products/category/:name List all products in a given category
POST /stripe/checkout-session Create a test checkout session using Stripe payment API

resinas-botanicas-back's People

Contributors

eumerme avatar dependabot[bot] 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.