- This application features an ad platform where a business can create an account and create,update,delete and see all of the ads created by business account user and viewre can create an account here to see a targeted ad. Ad is targeted towards viewer by gender,age group and location.
- Register/login both type of users
- Business can Create, read, update, and delete ads.
- Viewer can view targeted ads.
Frontend: Reactjs,Material UI
Server: Nodejs
Database: Mongodb
Authentication: JWT
Clone the project
git clonehttps://github.com/Siddhesh877/Ad-platform
Go to the project directory
cd Ad-platform
Install dependencies
npm install
Database setup:
- No need to setup database it is on mongodb server and any ip which have connection string can connect(connection string is in .env of backend)
Run app
- Run first server by
cd ad-platform-backend
npm start
- Run frontend by
cd ..
cd ad-platform
npm run
Backend is now up and running on port 5501. Frontend is now up and running on port 3000.
POST /api/business/register
POST /api/viewer/register
POST /api/viewer/login
POST /api/business/login
GET /api/viewer/getTargetedAds
GET /api/viewer/getAds
GET /api/business/updateAd/:id
GET /api/business/deleteAd/:id
- Login User (for both users)
http://localhost:3000/login
- Register User (for both users)
http://localhost:3000/register
- Viewer Page
http://localhost:3000/viewer
- Business Page
http://localhost:3000/business