Giter VIP home page Giter VIP logo

dev-f-instagram-frontend's Introduction

Dev.f instagram front-end Build Status

This is the front-end for the dev.f batch one of Culiacan, its backend can be found here

Table of Contents

  1. Preparing the environment
    1. Requirements for running locally
  2. Docker
    1. Requirements for running the containers
    2. Running the production ready containers

Pre requisites

Dev mode

To install the dependencies

yarn install

When developing it's recommended to use to built in sever that comes bundled with the app which can be launched with

yarn start

If you however prefer to work with the compiled static files they can be created with

yarn build

Its output will be at build/ and can now be placed into a web server such as nginx or apache

Docker

Pre requisites

To install docker in ubuntu 16.04

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

In case of ubuntu 18.04

sudo apt-get install -y docker.io

Next docker compose will be requiered

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Running the production ready containers

Docker will perform all the necesary steps here, gathering the dependencies, building them into new statics and placing them into a container with a nginx server in the front to serve them

To buld the new containers use the following command, the --build flag will force the containers to be rebuilt instead of using the previous ones

docker-compose up --build -d

To tear down the currently running containers

docker-compose down -v

Alternatively both commands may be chained should a problem arise with them

docker-compose down -v && docker-compose up --build -d

dev-f-instagram-frontend's People

Contributors

desarrollonetcardenas avatar pootispenserhere avatar

Stargazers

 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.