GithubHelp home page GithubHelp logo

webtronics-test's Introduction

Simple API for Social network app


This repository contains Webtroncs test task. It implements an api for interacting with a social network. You need to register and log in to access all features.

Brief description of existing endpoints:

  • POST /auth/register to register new user

  • POST /auth/jwt/login to login

  • POST /auth/logout to logout

  • POST /post/ to create new post

  • GET /post/ to get list of all posts

  • POST /post/{post_id} to update post

  • GET /post/{post_id} to get desired post

  • DELETE /post/{post_id} to delete post

  • POST /post/{post_id}/reaction to set reaction

  • GET /post/{post_id}/reaction to get list of all post reactions

  • DELETE /post/{post_id}/reaction to delete your reaction

Full API documentation is available after the project is launched at Swagger / ReDoc

Requirements

  1. docker, docker compose
  2. make

Run project locally

  1. Clone the project to local machine
git clone https://github.com/zavr1k/webtronics-test.git
  1. Run it with one command
make compose

After that, the project will be available at http://127.0.0.1:8000/

  1. To stop the project execute the command
make compose-down

Run manually

If you do not have make you can run the project manually.

  1. Also clone the project
  2. Create .env file with variables described in the .example.env or just copy that.
  3. To run project execute command
docker-compose -f docker-compose.yaml up -d
  1. To stop project execute command
docker-compose down

webtronics-test's People

Contributors

zavr1k avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.