Code Monkey home page Code Monkey logo

pastebin_api_clone's Introduction

pastebin_api_clone

simple api to post and get your code from server just like pastebin,but api only

How to use

The api hosted at : https://pastebincloneapi.pythonanywhere.com/api/v1/paste

Endpoint
  1. Get all code
    api/v1/paste : return all codes
  2. Get code by unique_id
    GET api/v1/paste/:unique_id : return a code select by unique id,you will get unique id when add code
  3. Add new code
    POST api/v1/paste : return a unique id of added code if success

How to run locally

  1. git clone this repository
    git clone https://github.com/AlphaBeta1906/pastebin_api_clone/
  2. make and activate virtualenv
    virtualenv venv
    . venv/bin/activate
  3. Install dependency
    pip install requirements.txt
  4. Migrate database(delete migrations folder first)
    # connect your database in config.py file
    flask db init
    flask db migrate
    flask db upgrade
  5. Run server
    python app.py

pastebin_api_clone's People

Contributors

alphabeta1906 avatar

Stargazers

Gangshiitho avatar 5l1v3r1 avatar

Watchers

 avatar

Forkers

5l1v3r1

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.