Skip to content

2k4sm/1b2b-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with 1b2b AdVantage API.

Prerequisites

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

  • Node.js (version 18.X or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository to your local machine:
git clone git@github.com:2k4sm/1b2b-backend.git
  1. Navigate to the project directory:
cd 1b2b-backend
  1. Install the project dependencies:
npm install

Configuration

  1. Create a .env file in the root directory of the project.

  2. Open the .env file and add the following environment variables:

PORT=8000

AWS_DEFAULT_REGION=<Region>
AWS_ACCESS_KEY_ID=<Key>
AWS_SECRET_ACCESS_KEY=<SECRET>
AWS_SESSION_TOKEN=<OPTIONAL-SESSION>

make ensure to export the aws keys into your dev environment.

Running the API

To start the API server, run the following command:

npm run dev

The API will be accessible at http://localhost:8000.

API Endpoints

The following are the available endpoints of the 1b2b API:

  • GET /: health check.
  • POST /analyse : takes a file as form.

Feel free to explore and test these endpoints using a tool like Postman.

Thank you for Exploring AdVantage API.

About

Ad complaince Checker and analysis tool for advertisement creators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors