Junior Araújo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Galera.bet Plataforma para Landing Pages Dinâmicas do Galera.bet, foi desenvolvida com o **[Vue 2](https://v2.vuejs.org/)** que é um Framework baseado em JavaScript. ## Estrutura do Gitflow - Fluxo de trabalho em equipe do Git #### Links de apoio para se trabalhar com o git: * aprenda os comandos básicos: [Guia do Git](http://rogerdudler.github.io/git-guide/index.pt_BR.html) * o que é GitFlow: [Git Workflow](https://www.zup.com.br/blog/git-workflow) #### Branchs do fluxo de trabalho: * **main:** É o inicio da ramificação do fluxo do git que após alterar o código nas branchs **fix-bug** ou **new-feacture** são atualizadas na branch **main** (merge); * **homolog:** Ramificação secundária responsável por executar os códigos que foram feitos em **fix-bug** ou **new-feacture** (merge) para testes antes de subir para a branch **main**. * **fix-bug:** É criada para correção de bugs, conforme surge a necessidade de atualização ou melhorias na aplicação; * **new-feacture:** Branch que desenvolvemos novas funcionalidades para a aplicação. #### Veja os seguintes fluxos das branchs: ![](https://hackmd.io/_uploads/Byay2JaSn.png) ###### **⬆️Legenda:** As branchs `fix-bug` e `new-feacture` sempre serão criadas a partir da branch `main`. ![](https://hackmd.io/_uploads/S1qEcyarn.png) ###### **⬆️Branch Homolog:** Fluxo utilizado para subir a aplicação no ambiente de `homolog` para realizar testes, onde cada branch seja ela `fix-bug` ou `new-feacture` quando é feito o `merge` os arquivos serão publicado no servidor. ![](https://hackmd.io/_uploads/rk4mRvm8n.png) ###### **⬆️Branch Main:** O mesmo vale para o fluxo da branch `main`, porém os arquivos da aplicação são publicados no ambiente de produção para o usuário final. ###### IMPORTANTE: Após as fases de testes em homolog, se os processos ocorrerem corretamente, o merge deve ser realizado dentro da branch main + a branch que foi resolvido o problema ou nova implementação, seja elas: fix-bug ou new-feacture. ## Como utilizar o Local By FlyWheel na máquina (Back-end) Para rodar o back-end pela primeira vez utlizamos esse software para simplificar o processo de execução do PHP, WordPress e MySQL. > **[Clique aqui para baixar o arquivo do back-end](https://drive.google.com/file/d/1Yem3WFzyrvV8UdcvKWJXdA9illLkmbf-/view?usp=sharing)** #### Passo a passo de importação do arquivo `api-galera-bet.zip`: ![](https://hackmd.io/_uploads/BySQNmJO2.png) ###### ⬆️Depois de instalar o programa, com ele aberto pegue o arquivo baixado anteriormente e arraste para essa tela do local, vai aparecer a mensagem "Drop to import site"; ![](https://hackmd.io/_uploads/ryZISm1_3.png) ###### ⬆️Após soltar o arquivo, siga os passos dessa tela deixando os campos preenchidos da forma padrão e clique em "Continue"; ![](https://hackmd.io/_uploads/rJEW8mkd3.png) ###### ⬆️Na última etapa de importação, mantenha selecionado a opção "Preferred", para manter as configurações padrões da versão do PHP, Web Server e MySQL, em seguida clique em "Importe site"; ![](https://hackmd.io/_uploads/S1qYUm1_h.png) ###### ⬆️Aguarde o processo de importação até concluir, pois os arquivos zipados estão sendo extraídos e os serviços estão sendo provisionádos para criação do servidor local; ![](https://hackmd.io/_uploads/BJDdPQyO2.png) ###### ⬆️Por fim, após a importação ser concluída com sucesso, o site já estará em funcionamento, caso não esteja funcionando clique em "Start site" no botão verde no canto superior direito; ![](https://hackmd.io/_uploads/rJCMuQ1_2.png) ![](https://hackmd.io/_uploads/SJnr_QyOh.png) ###### ⬆️Para finalizar, clique em "WP Admin" para abrir o painel do Wordpress; #### Configurações adicionais: ![](https://hackmd.io/_uploads/HyCZt71Oh.png) ![](https://hackmd.io/_uploads/r1bF97yO2.png) ###### ⬆️Para rodar o servidor sem o domínio ".local" altere nas configurações avançadas clicando em: `Menu Hamburguer > Preferences > Advanced > Router mode > localhost > Apply`; ![](https://hackmd.io/_uploads/BkvOM3btn.png) ###### ⬆️Atenção, retificando que esse é um processo iniciante para quando não se tem o projeto na máquina. Caso já tenha o projeto na máquina, o Local By Flywheel identifica e não deixa salvar o arquivo com o mesmo nome. Por esse motivo ocorre o erro de “Invalid Domain”, como apresenta no exemplo acima. ## Como fazer deploy do Back-end nos ambientes de Homologação e Produção Diferente do processo para rodar o `Local By FlyWheel` pela primeira vez, nós vamos precisar exportar um arquivo no formato JSON de dentro do painel do Wordpress no `ACF (Advanced Custom Field v6.1.6)`. ![](https://hackmd.io/_uploads/Bk4yXux_h.png) ###### ⬆️**Exportar:** Depois de logar no painel, acesse o menu lateral em: ACF > Ferramentas > Selecionar grupos de campos `(selecione apenas o grupo que foi modificado)` > Exportar como JSON; ![](https://hackmd.io/_uploads/S1AiHuluh.png) ###### ⬆️**Importar**: Dentro do painel do ambiente de Homologação ou Produção acesse as seguintes opções: ACF > Ferramentas > Selecionar arquivo > Escolher arquivo `(Arrastar ou escolher o arquivo JSON do computador)` > Importar JSON. Após seguir esses passos o painel personalizado é atualizado automaticamente. ## Project setup Depois de clonar o projeto em sua máquina, certifique de que tenha os sequintes programas e bibliotecas: > ✔ **[Visual Studio Code](https://code.visualstudio.com/)** - Editor de código-fonte; > > ✔ **[Local by Fly Wheel](https://localwp.com/)** - Testar projetos; > > ✔ **[Node.js](https://nodejs.org/en)** - Programa necessário para executar os pacotes do Vue.js; > > ✔ **[Git](https://git-scm.com/)** - Controle de versionamento do código; > > ✔ **[Google Chrome](https://www.google.com/intl/pt-BR/chrome/)** - Navegador padrão; > > ✔ **[Extensão Vue DevTools](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd?hl=pt-BR)** - Extensão devtools do Chrome para depurar aplicativos Vue.js; > > ✔ **[Postman ( Ferramenta API)](https://www.postman.com/)** - Software para testes de API ao lado do cliente; > > ✔ **[Yarn](https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)**: Gerenciador de pacotes do Node; > > ✔ **[GitHub Desktop](https://github.com)** - Plataforma que auxilia os desenvolvedores a armazenar, administrar o código e faz o registro de mudanças; > > ✔ **[Outlook](https://outlook.live.com/owa/)** - Organização de emails, calendários, contatos, tarefas e listas de tarefas pendentes em um único lugar. > > ✔ **[Asana](https://asana.com/pt?gclid=EAIaIQobChMIpf2S17D1_wIVMjjUAR3NfgUGEAAYASAAEgJR8_D_BwE&gclsrc=aw.ds)** - Acompanhamento e visibilidade sobre as demandas atuais, novas e futuras que estão sendo realizadas pela equipe. ## Extensões do Google Chrome > ✔ **[AdBlock](https://chrome.google.com/webstore/detail/adblock-%E2%80%94-best-ad-blocker/gighmmpiobklfepjocnamgkkbiglidom?hl=pt-BR)** - Bloquear anúncios; > > ✔ **[Dashlane](https://www.dashlane.com/pt-br)** - Plataforma de auxilio diário, onde armazena logins e senhas de qualquer site que deseja salvar. > > ✔ **[JSON Viewer](https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh?hl=pt-BR)** - É uma forma de visualizar respostas de API com mais clareza. > > ✔ **[Vue.js DevTools](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)** - Painel de debbuguer do vue; > > ✔ **[Analytics Debbuger](https://chrome.google.com/webstore/detail/analytics-debugger/ilnpmccnfdjdjjikgkefkcegefikecdc)** - É um painel de debbuguer do Google Analytics para testes de eventos. ##### Execute o comando ⬇ para instalar todas as dependencias do projeto: ``` yarn install ``` ### Compiles and hot-reloads for development ``` yarn serve ``` ### Compiles and minifies for production ``` yarn build production ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully