- Overview
- Repo structure
- How to Install
- Running the app
- Running by docker-compose
- Swagger Documentation
This challenge imagines that we have a social media platform that is under attack from spam. We have implemented a reporting system for users that lets them report spam to the platform, and our spam protection team.
- We need a way to block the content and resolve those reports
- The resolving should be defined as a
PUT
request to an endpoint with this structure/reports/:reportId
Block
: Means that the content should no longer be available to usersResolve
: Means that the report is considered "resolved", and it is no longer visible to the spam protection team
Dependencies | Version |
---|---|
Node.js | >= 12.13.1 |
Typescript | >= 4.3.5 |
@nestjs/cli | >= 8.0.0 |
- src/
- config/
- shared/
- types/
- modules/
- report/
- src/
- assets/
- common/
- components/
- view/
- redux/
$ npm i -g @nestjs/cli
$ npm install
$ mv .env.example .env
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# Step 1: Edit your_dockerhost_ip located in frontend/.env.example
# Step 2: Edit your_dockerhost_ip located in nginx/default.conf
# Then run
docker-compose up --build
You can access Swagger documentation via acessing the backend on http://localhost:5000/swagger/