Skip to content

TP | 75.52 - Taller de Programación II | 1C2018 | FIUBA

Notifications You must be signed in to change notification settings

LaCumbancha/hypechat-web

 
 

Repository files navigation

Bootstrapping

Cloning Repo

Run git clone https://github.com/MaxiSuppes/hypechat-web.git. It creates a folder called hypechat-web.

Verifying node and npm versions

  1. Node 10.15.0
  2. Npm 6.4.1

Installing packages

Run npm install in the project directory.

Configuration

  1. In the project directory, create a new file called .env.local and copy on it the content of .env.local.example.
  2. In WebStorm, right-click on src folder and select Mark Directory as Source root option.

Creating docker image

Run docker image build -t react ..

Running the app

With docker

docker run -it react

The docker image "react" should be created.

Without docker

npm start

Runs the app in development mode.
Open localhost to see it in the browser.

Testing

npm test

Launches the test runner.

Deployment

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for a better performance.

The build is minified and the filenames include the hashes.

With docker and heroku

heroku login -i

heroku container:login

heroku container:push web --app hypechat-app

heroku container:release web --app hypechat-app

About

TP | 75.52 - Taller de Programación II | 1C2018 | FIUBA

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.8%
  • CSS 2.6%
  • HTML 1.3%
  • Dockerfile 0.3%