Code Monkey home page Code Monkey logo

ikea_code_sample's Introduction

Run the app

For running the backend code you can use docker-compose and use the script docker-compose up -d --build for the first time and then run docker-compose up -d for the later usages. You can use the command docker ps -a to find the processes running by docker and for backend logs you can use the container id and use the code docker logs -f <container_id>

Project Description:

This is only part of the whole project, If you can see other files is that I have extracted the parts that you can place an order except the part that the order automatically can extract the user info out of the token they send to the backend and all the info is gathered automatically they just needed to send the order detail they wanted to send which was an array of objects which the structure was a contract between frontend devs and backend devs

I offer to take a look at the Order files and folders and take a look at the domain logic how it is done!

Project Architecture:

The project is a monolithic app that is build around DDD and Hexagonal architecture so that each adapter, port and domain logic can be easily extrated out and be used in a separate container and as an independent service if needed! The whole project is Dockerized so just use docker to run the project! make sure to have the .env if you're running the project which you only need the mongodb connection URI and a port to run it!

  • This project uses APIs to call each service but it can be replaced with lambda functions as Hexagonal is really easy to replace files with other file(s).

ikea_code_sample's People

Watchers

Kanaan Bahmani 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.