Giter VIP home page Giter VIP logo

contestbot's Introduction

Contest Bot 🎯

Welcome to the Contest Bot - will remind you about all upcoming contests happening on various platforms, ensuring you stay on top of game and improve it on WhatsApp! πŸŽ‰πŸ€–

Screenshots

New Job Notification
ContestBot Message

Deployment Procedure using MicroSoft Azure πŸš€

To deploy Contest Bot on Microsoft Azure, follow these steps:

  1. Create an Azure Virtual Machine Instance: Connect to this virtual machine with the using local machine PowerShell.

    Other Information:

    a) Using a Linux subsystem like WSL or Ubuntu on Terminal?

    b) Copy your private key path to the Linux subsystem and ensure it has the correct read-only access.

    c) Move your private key to the Linux subsystem. Use chmod to assign read-only access, then SSH.

    mv /mnt/c/<your-private-key> ~/.ssh/
    chmod 400 ~/.ssh/<your-private-key>
  2. Connect to the Azure VM: Use SSH to connect to the VM instance using the key pair you created. You can use the following command:

    ssh -i your-key-pair.pem azureuser@your-azure-machine-ip
  3. Install Node.js: Install Node.js on the AZURE VM instance by running the following commands:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
    source ~/.bashrc
    nvm install node
  4. Install MongoDB: Install MongoDB on the Azure VM instance by following the MongoDB installation guide. You can choose the appropriate method for your instance's operating system.

  5. Clone the Contest Bot Repository: Clone the Contest Bot repository from GitHub onto your Microsoft Azure VM using the following command:

    https://github.com/parth782/ContestBot.git
  6. Install Dependencies: Navigate to the ContestBot directory and install the required dependencies by running the following command:

    cd ContestBot
    npm install
  7. Configure Environment Variables: Set up the necessary environment variables for the Contest Bot. This may include database connection details, API keys, and other configurations. Create a .env file in the root directory and specify the required variables.

  8. Start the Bot: Start the Contest Bot application by running the following command:

    npm start
  9. Keeping Application Alive: PM2 is a Node. js process manager that comes with a built-in load balancer. It helps facilitate production deployments and enables you to keep running applications alive indefinitely.

PM2 Commands: To install pm2 use command:

npm i pm2 -g 

To start pm2 job use command:

pm2 start index

To stop or kill pm2 job use command:

pm2 stop index (stop the job)
pm2 kill index (to permanently kill the job)

To restart pm2 job use command:

pm2 restart index

To check pm2 status or log use command:

pm2 status (for status)
pm2 log (for logs)

Congratulations! Your Contest Bot is now deployed on Microsoft Azure VM and ready to remind you about the upcoming contest on WhatsApp! πŸŽ‰πŸ€–

Tech Stack πŸ› οΈ

Contest Bot is built using the following

technologies:

  • Node.js Node.js: Server-side JavaScript runtime environment.
  • MongoDB MongoDB: NoSQL database for storing contest data for faster access.
  • Azure VM Azure VM: Cloud-based virtual machine for hosting the bot.

Feel free to explore and enhance the capabilities of Contest Bot with this powerful tech stack!

Stay connected, stay informed, and let Contest Bot makes sure to remind about the upcoming contests on various platformsπŸ“±πŸŽ―

contestbot's People

Contributors

shivamsisodia07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.