GithubHelp home page GithubHelp logo

lab3_topicos-telematica's Introduction

LAB3_TOPICOS-TELEMATICA

Table of Contents
  1. How work
  2. Setup
    1. Docker
    2. Nginx
    3. React
    4. ExpressJs
    5. Mongodb
  3. Demo

How work

Web App Reference Architecture

Front and Back

The BookStore front and back is provided by the teacher [email protected] and build it on docker containers.

Mongo

The database Mongodb is the Community version running local on AWS EC2 Machine

Nginx

Nginx is working on another AWS EC2 machine working as proxy

Setup

Nginx

Nginx is the same configuration as the last Lab

React

The main reason to use docker is to isolate the dependences to avoid problems on the EC2 Machine, react will use docker-compose and Dockerfile when the machine starts or the container fails restart automatically, Dockerfile and docker-compose are located on this repo on frontend folder.

When everthing is done please run this command where is located your docker-compose.yml

sudo docker-compose up -d

Express

sudo docker-compose up -d

Mongodb

Follow the guide provided by Mongodb team to install Mongodb Community edition on your AWS EC2 Machine Setup Mongo

Connect to database

To connect to the database on the backend using mongoose the database url look like this

mongo "mongodb://${DBUSER}:${DBPASSWORD}@<host>:<port>/<dbname>?authSource=admin"

Demo

Visit Bookstore

When you visit the webpage you will see

image

lab3_topicos-telematica's People

Contributors

dfgarciac1 avatar

Watchers

 avatar

Forkers

xguerrerov1

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.