GithubHelp home page GithubHelp logo

petegichana / yolo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vinge1718/yolo

0.0 0.0 0.0 2.36 MB

Nodejs, Express API and MongoDB e-commerce feature project

JavaScript 74.95% CSS 20.54% HTML 2.61% Dockerfile 0.49% Ruby 0.58% Jinja 0.83%

yolo's Introduction

YOLO Application

Overview

This YOLO application is a simple web application that consists of a client and a backend service. The client is a front-end application responsible for user interface and interactions, while the backend service provides necessary functionality to the client. This application uses Docker containers for easy deployment and management.

Elements of the Application

  1. Client: The client component is responsible for the user interface. It runs on port 3000.
  2. Backend: The backend component provides necessary API services to the client. It runs on port 5000.
  3. Docker: Docker is used for containerization of both client and backend services. Docker Compose is utilized for managing multi-container Docker applications.
  4. Ansible: Ansible is used for automated provisioning and deployment of the application. Ansible roles are organized to handle different aspects of the deployment process.

Prerequisites -Vagrant: Ensure Vagrant is installed on your local machine. -VirtualBox: Install VirtualBox for running the Ubuntu virtual machine. -Ansible: Make sure Ansible is installed on your local machine.

How to Run the Application Clone the Repository:

-git clone -cd yoloapp

Edit Hosts File:

Open the hosts file and replace with the IP address of your server. Provision the Virtual Machine:

Run the following command to set up the virtual machine and install necessary packages using Vagrant and Ansible:

-vagrant up --provision

Access the Application:

-vagrant ssh : To go to the server -cd /yolo :To go to the application directory where the docker-compose file is -sudo docker-compose up -d :To start the 2 containers -sudo docker ps: To see if the containers are running

Once this is successful, access the application in your browser using the server IP address: -http://localhost:3000 since we forwarded the server ports to the host

Stopping the Application: To stop the application and the virtual machine, run:

-vagrant halt

yolo's People

Contributors

petergichana avatar jonnygovish avatar petegichana 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.