Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FakeTube #21

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

FakeTube #21

wants to merge 25 commits into from

Conversation

rrgurski
Copy link

@rrgurski rrgurski commented Oct 19, 2021

FakeTube...

Teste de skills técnicos para a empresa Segfy.

Tecnologias utilizadas

  • Back-end: ASP.NET Core 5.0, EF Core 5.0, MySQL, Google Youtube API v3.
  • Front-end: Razor, Bootstrap, jQuery, Font Awesome.
  • Tests: MSTest, SQLite.
  • Deploy: AWS Elastic Beanstalk (link).

Importante: caso receba a mensagem "A chave de API do YouTube excedeu a cota de uso diário", me avise para que eu possa substitui-la. A cota gratuita é pequena para acessar os detalhes dos vídeos e acaba rapidamente durante testes repetitivos.

Executar o projeto em ambiente próprio

São necessárias as definições de algumas váriaveis de ambiente para o funcionamento do banco de dados e da API do Youtube.

RDS_HOSTNAME=your_mysql_host
RDS_PORT=your_mysql_port
RDS_DB_NAME=your_mysql_schema
RDS_USERNAME=your_mysql_user
RDS_PASSWORD=your_mysql_pwd
        
YOUTUBE_API_KEY=your_key
YOUTUBE_API_PROJECT=your_project_name

Também é póssível inserir os valores hardcoded manualmente na classe ConfigManager (Libraries/SkillTestSegfy/ConfigManager.cs).

public class ConfigManager
{
    //public static string DatabaseHost => Environment.GetEnvironmentVariable("RDS_HOSTNAME");
    public static string DatabaseHost => "localhost";
    
    //public static string DatabasePort => Environment.GetEnvironmentVariable("RDS_PORT");
    public static string DatabasePort => "3306";
    
    [...]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant