GithubHelp home page GithubHelp logo

facesketchmaker's Introduction

Project Setup and Run Instructions

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Steps to Setup and Run the Project

  1. Install Frontend Dependencies: Open the project folder in your terminal and run the following command to install the necessary Node.js packages:

    npm install
  2. Start the Frontend Development Server: Once the dependencies are installed, start the development server by running:

    npm run dev
  3. Setup and Run the Backend Server: Navigate to the backend folder in your terminal:

    cd backend

    Run the backend server using Python:

    pip install -r requirement.txt
    python app.py
  4. Configure Twilio in Notification Server: Navigate to the notification_server folder, then go to controllers > publishHandler.js and enter your Twilio SID and WhatsApp number in the required places in the code:

    //Example entry (replace with your actual credentials)
    const client = require("twilio")( "Twilio SID 1","Twilio SID 2" );
    const phoneNumbers = ["Phone number of station 1", "Phone number of station 2"]; 
  5. Start the Notification Server: Open the notificationServer folder in your terminal:

    cd notification_server
    npm i

    Run the server using Node.js:

    node server.js
  6. Connect WhatsApp to Twilio: To connect your WhatsApp number to Twilio, send a message from your WhatsApp to Twilio with the text "join locate-ordinary":

    • Open WhatsApp
    • Send a message to Twilio's provided number with the text:
      join locate-ordinary 
      

Summary of Commands

For quick reference, here is a summary of the commands you will need to run:

# In the project root folder
npm install
npm run dev

# In the backend folder
cd backend
pip install -r requirement.txt
python app.py

# In the notification server folder
cd ../notification_server
npm i
node server.js

By following these steps, you should have the project up and running with all servers operational. Ensure you have properly configured your Twilio credentials and connected your WhatsApp number for the notification functionality to work correctly.

facesketchmaker's People

Contributors

pranjalbajpai23 avatar divya9936 avatar

Stargazers

 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.