About | Technologies | Requirements | Contributing | Author
This is a simple social media application. The user can register,login,post,comment and follow on this application.
The following tools were used in this project:
Before starting 🏁, you need to have Git, Python 3.8, and the above Libraries installed.
For major changes, please open an issue first to discuss what you would like to change.
- open terminal in root directory
- run command cd website
- run command npm run build
- run command cd ..
- run command python manage.py runserver
cd website
npm run build
cd ..
python manage.py runserver
Send all POST request with Headers X-CSRFToken : csrfcookie value
localhost/api/getcsrf accepts GET request with no data
localhost/api/account/register accepts POST request with json data
{
"username" : "myusername",
"password" : "mypassword",
"re_password" : "mypassword",
"email" : "myemail",
"first_name" : "myfirst",
"last_name" : "mylast"
}
localhost/api/account/login accepts POST request with json data
{
"username" : "myusername",
"password" : "mypassword",
}
localhost/api/account/isauthenticated accepts GET request with no data
localhost/api/account/logout accepts POST request with no json data
localhost/api/account/delete accepts DELETE request with no jsond data
localhost/api/profile/current_user accepts GET request
{
'status' : 'success',
'message' : '',
'data' : {
'username' : 'myusername'
}
}
API | Types | Response |
---|---|---|
/api/account/register | POST | -- |
This project is under license from MIT. For more details, see the LICENSE file.
Made with ❤️ by Ravi Verma