Skip to content

deppbrazil/api-rsxp

 
 

Repository files navigation

API RSXP

Descrição:

API para Social Wall do Twitter apresentado no workshop do evento da Rocketseat na RSXP

Print:

Print do Sistema

Iniciando

Pré-requisitos

  • NodeJs > 10

Instalando

Windows, Linux e MacOS

Faça o fork desse repositório para o sub-grupo do projeto que está desenvolvendo.

git clone https://github.com/calleufuzi/api-rsxp

Crie as branchs manualmente ou utilize o git flow:

GIT FLOW

  • Para instalar e usar o git flow acesse o link.

MANUALMENTE

  • Crie as branch master e develop
> git checkout -b master
> git push origin master

> git checkout -b develop
> git push origin develop

Configurando

Preencha os arquivos de configuração na pasta "config" com as informações dos serviços usados pelo projeto.

Crie o arquivo development.env dentro da pasta .env e preecha-o com as configurações necessárias usando .env.example como exemplo.

Execute os seguintes comandos:

> npm install or yarn

Rodando

> npm start ou yarn start

Rodando com nodemon

> npm devstart ou yarn devstart

Acessando a api

localhost:'porta-configurada no development.env'
localhost:3000/health

Estrutura de pastas

Abaixo segue a estrutura de pastas do projeto.

.
├── .vscode                   # Folder with the configuration files to run debug mode in the VS Code IDE.
├── bin                       # Folder with www file responsible for start web server.
├── config                    # Folder with the configuration files for run project.
├── controllers                    # Folder with the controllers of the project
├── env                       # Folder with the environment variables files. (e.g database, aws services)
├── helpers                   # Folder with the helpers files.
├── middlewares               # Folder with the middlewares files to use before executing the routes.
├── node_modules              # Folder with project modules.
├── public                    # Folder with public files (e.g assets, js, css).
├── routes                    # Folder with the routes files from project.
├── services                  # Folder with services used by project (aws, google, azure, twitter).
    ├── aws
    └── twitter
├── views                     # Folder with views (e.g ejs, html).
├── .gitignore
├── app                       # Entrypoint for project.
├── package.json
├── pm2.json                  # PM2 configuration file to start project.
└── readme.md

Autor(res)

TWITTER_CONSUMER_KEY="H5bR8f8K6ydBJ7tk8VN446dDo" TWITTER_CONSUMER_SECRET="D8p5hUE9fIWZ03OgsRFzHblu6wzUKve3UZkZ3fD6bwua7znIE8" TWITTER_ACCESS_TOKEN="391660714-UKKSThYlGuQbL1R652NhEsO6ClrrrrkpsUapWFJ5" TWITTER_ACCESS_TOKEN_SECRET="OxDiv6w7QIrhAPbR9K0DnnaGMbyVEzLPwvoKQbpINXbV4"

Credencail 3

TWITTER_CONSUMER_KEY="VZkWDYe5EAcgKRqNu6UgkLLGS" TWITTER_CONSUMER_SECRET="5L7DNyn9flX8qDOybEgjQp4yLQaKS6YzOiFGXVeneKwk2AQF7r" TWITTER_ACCESS_TOKEN="391660714-JL9ualiYFy9T7ZJXk0amjJOU8QFeWGo5pOgMLb89" TWITTER_ACCESS_TOKEN_SECRET="MoBdZSYmVXmrsHuSjuOE7q7d4ULJ51guHvy21K6lpRMFh"

Credential 4 TWITTER_CONSUMER_KEY="hNN9qBofddCvZ3ViwXqmI7OFq"" TWITTER_CONSUMER_SECRET="0LwMmhwdbkT6trjek5T23DCbni1zzXU3gjKU3i2jBMA5EpyZ3h" TWITTER_ACCESS_TOKEN="391660714-TiwxT3sL5GVkiXUv3L3ZeQ3dDZ7E9UitU0rojecY"" TWITTER_ACCESS_TOKEN_SECRET="o0GKMn87ayrZpxv87I0p8tbJT1K4nx10ZqZ6T979S2oTq"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.3%
  • HTML 2.7%