Code Monkey home page Code Monkey logo

junk-it's Introduction

Junk It

"One person's junk is another person's treasure."

An e-commerce app for the exchange of junk, built using a microservices architecture. The client is a Nextjs React app and the back end services are all Node Express apps.

It is designed to be deployed using docker images in a kubernetes cluster. It makes use of github actions for its CI/CD pipeline.

Start

To run this project, ensure you have docker desktop and skaffold installed. Then run:

skaffold dev

Services

This application is comprised of a number of different services to explore a variety of different concepts used in a microservices architecture. These are:

  • auth - handles the creation of users and their authentication
  • client - provides a useable front end for users to interact with
  • expiration - handles the expiration of orders. A user can reserve a piece of junk and has a limited time to pay for it before it is released for other users to order.
  • junk - handles the creation and update of pieces of junk
  • orders - handles the reservation and ordering of junk
  • payments - handles charging users for junk

All the back end services are built using Node and Express. Most use MongoDB for their database. The expiration service uses Redis for its timers. The client was built using Next js.

Infrastructure

All the services and databases in this app are designed to be deployed using docker images in a kubernetes cluster. The environment, setup, and deployment files detailing this can be found in the infra/k8s directory.

Common

The common directory contains common code in a module that is shared between all back end services. This approach allows for easy code reuse, without having to rewrite the implementation in each service.

Tests

The back end was the focus of this project, so all back end services have a full suite of tests. This project was developed using a test driven approach. All services use Jest as the test runner.

junk-it's People

Contributors

dependabot[bot] avatar zakwarren avatar

Watchers

 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.