This project aims to manage affiliate marketing links.
You can register a new shop, create a campaing to products with a personalized discount.
Influencers will navigate trough a list of products, and generate a unique link.
When this link is clicked we track some info, and redirect to the shop page.
This project is composed by multilayer folder structure, inspired by DDD and Clean Archteture.
`Each domain of business has an controller, service, repository and model.`
- The application layer on ./src/api
This layer is responsible to mediate between the rest api and your business domain. - The Domain layer on ./src/domain
This layer is reponsible to all the business rules, and interfacing with DB trough a repository pattern. - The Infra Layer on ./src/infra
This layer contains configurations for the application and the database.
This structure provides some design patterns to be easily modified when needed.
node >=11.8.0
docker
docker-compose
docker-compose up
This will up mongo db and the application
GET localhost:7003/shops
GET localhost:7003/shop/:id
PUT localhost:7003/shop/:id
POST localhost:7003/shop
DELETE localhost:7003/shops
GET localhost:7003/products
GET localhost:7003/product/:id
PUT localhost:7003/product/:id
POST localhost:7003/product
DELETE localhost:7003/producs
GET localhost:7003/campaings
GET localhost:7003/campaing/:id
PUT localhost:7003/campaings/:id
POST localhost:7003/campaing
DELETE localhost:7003/campaing
GET localhost:7003/urls
POST localhost:7003/url/shorten
GET localhost:7003/url/expand/:url
GET localhost:7003/url/:url
Anderson andersons.code@gmail.com
- Github: @andersondsl