Coder Social home page Coder Social logo

yolo's Introduction

Nodejs, Express API and MongoDB e-commerce feature project

Author-Duncan Ndirangu

Requirements

Make sure that you have the following installed:

  • node
  • npm
  • MongoDB and start the mongodb service with sudo service mongod start

Navigate to the Client Folder

cd client

Run the folllowing command to install the dependencies

npm install

Run the folllowing to start the app

npm start

Open a new terminal and run the same commands in the backend folder

cd ../backend

npm install

npm start

About the app

Actually, there are two separated apps. The Client which serves the FrontEnd (using React), and the Backend (in Node/Express).

Run the app using : $ docker-compose up --build

Image Source: Google Images

To check the status :

MongoDB: A cross-platform document database

docker-compose ps MongoDB is a NoSQL (non-relational) document-oriented database. Data is stored in flexible documents with a JSON (JavaScript Object Notation)-based query language. MongoDB is known for being flexible and easy to scale.

How to stop the App :

Express: A back-end web application framework

$ docker-compose stop Express is a web application framework for Node.js, another MERN component. Instead of writing full web server code by hand on Node.js directly, developers use Express to simplify the task of writing server code.

Languages & tools

React: A JavaScript library for building user interfaces

  • Node React was originally created by a software engineer at Facebook, and was later open-sourced. The React library can be used for creating views rendered in HTML. In a way, it’s the defining feature of the stack.

  • Express

Node.js: A cross-platform JavaScript runtime environment

Creating the Build

To create the build for the entire application, we need to run the following command: docker-compose build

Starting the Services

We can start the multi-container system using the following simple command: docker-compose up

At last, we can open http://localhost:3000 to see our React Frontend.

The backend server is live on http://localhost:5000

And MongoDB is running on http://localhost:27017

License MIT

yolo's People

Contributors

dnyakonyu avatar jonnygovish avatar duncanndirangu3 avatar vinge1718 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.