Git Product home page Git Product logo

herokushop's Introduction

HerokuShop

This project was used to build an API available through Express to manage an online service store, featuring item classes and a cart creation and management. It was the pattern Adapter to decouple the use of ORM SQL libraries, here being available the library Sequelize.

The design patterns FactoryMethod and Facade were also used. The concept of Dependency Injection was applied. In addition, it was developed with Automated Tests using the Jest library for the creation, simulation and execution of tests.

The project also has a log service using Winston and Elasticsearch, being possible to view the logs through Kibana. Both are available for Api through Docker.

Technologies

The project uses the following technologies: NodeJs Ts-Node Typescript Express Cors Winston Jest Ts-Jest Sequelize MySQL Eslint Express-Rate-Limit, http-status-codes, Husky Elasticsearch Kibana Docker

Installation local environment

  • Make Elasticsearch, Kibana and MySQL services available
  $ docker-compose up -d
  • You might need to free more space on docker to run Elastic, in this case ( for WSL ) use the command below and restart the container:
  $  wsl -d docker-desktop
  $  sysctl -w vm.max_map_count=262144
  • Configure MySQL with a database, user and password. Add this information in config/dev.env . Create the tables for each class. To do that you may find useful: MySQL Tables

  • To install all project dependencies

  $ npm install
  • To run the project in local environment
  $ npm run dev

A API se encontrará disponível na porta 8080

Use

Routes




Database / Classes Diagram


alt text

herokushop's People

Contributors

mcesarpl avatar

Watchers

James Cloos avatar  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.