Skip to content

Siddhesh877/Ad-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Ad Platform

  • 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.

Features

  • Register/login both type of users
  • Business can Create, read, update, and delete ads.
  • Viewer can view targeted ads.

Author

Tech Stack

Frontend: Reactjs,Material UI

Server: Nodejs

Database: Mongodb

Authentication: JWT

Run Locally

Steps:

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.

API Reference

1. Register new Business

  POST /api/business/register

2. Register new Viewer

  POST /api/viewer/register

3. User login

  POST /api/viewer/login

4. Business login

  POST /api/business/login

5. Get all targeted ads

  GET /api/viewer/getTargetedAds

6. Get all ads posted by business

  GET /api/viewer/getAds

7. Update Ad

  GET /api/business/updateAd/:id

8. Delete Ad

  GET /api/business/deleteAd/:id

Frontend Reference

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published