Skip to content

Latest commit

 

History

History
109 lines (71 loc) · 2.32 KB

README.md

File metadata and controls

109 lines (71 loc) · 2.32 KB

Checks & Deploy

Welcome to BR Dev Streamers 👋

O Br Dev Streamers surgiu com a ideia de agregar todas as pessoas que fazem live coding em português na Twitch.

Installation

Install my-project with npm

  cd my-project
  yarn install
  cp .env.example .env

Usage

  yarn start:dev

Runs the app in the development mode.

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

Running Tests

To run tests, run the following command

  yarn test

To start visual tests with Cypress playground:

  yarn start:dev
  yarn cy:open

To run tests in CI:

  yarn build && yarn test:e2e

Commit

Add files to staged files and run the following command

  git commit

This command will check lint errors in your files and will guide you through the commit process.

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

✨ Deployment

There is a Dockerfile that already serves an NGINX with SSL.

You can simply, edit the nginx.conf file to match your domain:

server {
    listen              443 ssl;
    server_name         brstreamers.dev;
    ssl_certificate     /etc/letsencrypt/live/brstreamers.dev/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/brstreamers.dev/privkey.pem;
    location / {
        root   /usr/share/nginx/html;
        try_files $uri $uri/ /index.html =404;
    }
}

Then:

  docker build -t brdevstreamers-ui .

And:

  sudo docker run -d -p 80:80 -v "/home/brdevstreamers/letsencrypt:/etc/letsencrypt" --network host --name brdevstreamers-ui brdevstreamers-ui

Contributors