GithubHelp home page GithubHelp logo

poll-client's Introduction

Getting Started with Project

Live Link:

Go to the given link to see the live web app.

https://live2poll.netlify.app/

Steps to run the web app on Local system:

Frontend setup:

Step 1: Go to the given link to download the frontend part of the code.

https://github.com/riteshsoni123/poll-client

Step 2: After downloading the code go inside the directory and type the command "npm install" in the console to download all the packages used in the frontend. Step 3: Now to run the frontend part some essentential details is needed which is stored in the .env file. Step 4: Create an .env file in the directory and paste the following information in it.

REACT_APP_BACKEND_URL=http://localhost:8000

Step 5: Type the "npm start" command in the console to start the frontend. After this the frontend part is ready to be executed in the local system.

Backend setup:

Step 1: Go the the given link to download the backend part of the code.

https://github.com/riteshsoni123/poll-server

Step 2: After downloading the code go inside the directory and type the command "npm install" in the consile to downlead all the packages used in the backend. Step 3: Now to run the backend part some essential details is needed which is stored in the .env file. Step 4: Create an .env file in the directory and paste the following information in it.

FRONTEND_URL=http://localhost:3000

Step 5: Type the "npm start" command in the cosole to start the frontend. After this the backend part is ready to be executed in the local system.

Local link

Use the given link to view the app.

http://localhost:3000

How to use the web application

Login for Teacher and student

The Teacher will have to select the profession from the dropdown box provided in the login page. After that write the name of the person trying to enter the site.

Below is the login example for the teacher and student.

Screenshot from 2024-06-28 20-23-00 Screenshot from 2024-06-28 20-23-38

Join room for teacher and student.

After login the teacher will be redirected to the below screen where he/she have to click the "Create Room" button on the right hand side of the navbar. After the button is clicked a room is created and teacher will be inside in the room.

Screenshot from 2024-06-28 20-23-16

Now as you can see the Room Id is displayed on the right side of the navbar where previously was the "Create Room" button.

Screenshot from 2024-06-28 20-24-04

Now for student to join the room he/she have to copy the Room Id displayed on the teacher screen and paste it in the input field and click the "join" button that is on the right side of the navbar.

Screenshot from 2024-06-28 20-24-16

Now as you can see the Room Id is displayed on the right side of the navbar where previously was the input field and the "Join" button. Screenshot from 2024-06-28 20-25-27

Create Poll

Now to create a poll the teacher has to click the "Create New Poll" button on the screen.

Screenshot from 2024-06-28 20-25-42

A form will appear where you can enter the question and the time limit for the poll to last. With the help of the "Add Options" button you can add extra options for the poll. After everything done click on the "submit" to start the poll.

Screenshot from 2024-06-28 20-27-25

This is the screen that will appear on the student side so that they can answer and submit the poll. They will also be allowed to see the live poll after submission.

Screenshot from 2024-06-28 20-27-48

poll-client's People

Contributors

soniritesh avatar riteshsoni123 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.