Poller is MERN stack social media project to start your polls and also respond to some of others polls.
Poller uses following tech tack and tools :
- React
- Redux
- Redux Saga
- React router
- Node.js
- Express
- Sendgrid - For emails
- Mongoose - MongoDB ORM
- Morgan - Reqeust logging
- socket.io - Notificatons
- Firebase - file storage
- MongoDB - Database
- Frontend - Firebase Hosting
- Backend - Heroku
- Database - MongoDB Atlas
- Frontend
Since it's just a react project, just follow below steps:
- Clone the
poller-frontendproject. - Open terminal and navigate to the project folder
- Execute
npm ito download dependencies - Execute
npm run buildto generate prod build. or - Execute
npm startto start local server. - Deploy the build from
dist\folder on your server.
- Clone the
Note - Frontend will rest endpoints which has base url starting with https://poller-backend.herokuapp.com, so in case of your base url varies, make sure you update it in endpoints.js file
-
Database Get the MongoDB URI. Make sure the DB user has proper privileges. Create the Database
poller -
Backend Backend for poller is Node.js. So follow the below steps to execute it
- Clone the
poller-backendproject. - Open the terminal and navigate to the folder.
- Execute
npm i. - Create a folder named
configs.jsin project root which exports a object as default. - Create a account on Sendgrid for mailing services and add your API key to the Object.
- Also populate Object with MONGODB uri and other details.
- Create a account on firebase (if you don't have one) and then create a new project.
- Create a
keysfolder in project root. - Get the admin key JSON and add it in
keysfolder.
- Clone the
And you are good to go!!!!
And if you like the project, make sure you star the project so others can also learn.

.png?alt=media&token=59ba2189-8b17-44cf-9d17-40c1d39008d2)






