Required docker
and docker-compose
./startup.sh
Add your CLEARBIT_KEY
to configuration env.secret
if you want.
Open http://localhost/
For spamming/testing API in bot/
directory:
python social_bot.py -u 100 -p 20 -l 20
python social_bot.py --config config.json
POST /v1.0/signup/
{
"username": "username" ,
"password": "validatedpass"
}
POST /v1.0/token/
Use your credentials. JWT used.
{
"username": "username" ,
"password": "validatedpass"
}
POST /v1.0/posts/
Create post.
{
"content": "Summertime sadness?"
}
GET /v1.0/posts/
Posts list
{
"posts": [
{
"id": 1,
"user": {
"id": 4,
"username": "willsmith",
"img": null
},
"content": "Summertime sadness?",
"date": "just now",
"likes": 0,
"liked": false
}
],
"count": 1
}
POST /v1.0/posts/{id}/like/
DELETE /v1.0/posts/{id}/like/