Skip to content

Run the Project

Nelson Minaya edited this page Jan 8, 2021 · 3 revisions

Run the Project

To run this project locally you just need to clone the repo and run the GrammarNazi.App project.

This project integrates with Twitter and Telegram.

For the telegram bot, you will need to create a bot and get a Telegram API Token. You need to place the Telegram API Token in launchSettings.json file.

You will not be able to run the Twitter Bot. So just comment the following line: https://github.com/nminaya/grammar-nazi-bot/blob/e170cb6a8b2e44d92b7ca94db18b750b096b4b44/GrammarNazi.App/Startup.cs#L41

Change the repository

Instead of using Firebase, change the following line to use InMemoryRepository: https://github.com/nminaya/grammar-nazi-bot/blob/e170cb6a8b2e44d92b7ca94db18b750b096b4b44/GrammarNazi.App/Startup.cs#L58

services.AddTransient(typeof(IRepository<>), typeof(InMemoryRepository<>));

After this, the GrammarNazi.App project should run without issues.

Clone this wiki locally