/Pastebin

Primary LanguageJavaScriptMIT LicenseMIT

Pastebin

A Web project help you share codes and notes with your friends

Made with ❤ by Python with Django

language Platform

Table of Contents

Summary

Pastebin is a clone of the original Pastebin that include the following features:

  • A hosted web version on IBM CLoud at pastbin
  • An API to CRUD the snippets, users and groups

Installation

This project tested with Python 3.7, Django 2.2, and Pipenv and it's highly recommend to use Pipenv over pip

Steps

  1. Open the terminal or CMD and paste the following commands:
    git clone https://github.com/
    cd Pastebin
  2. After checking Python version, use one of the following methods to install the depends:
    1. For Pipenv use the following command
      pipenv install
      pipenv shell   # to run the virual environment
    2. For pip use the following command
      pip install -r requirements.txt
  3. Now run these two commands to make a sqlite db instanse
    python manage.py makemigrations --settings=Pastebin.settings.development
    python manage.py migrate --settings=Pastebin.settings.development
  4. You're ready to bring up your local server
    python manage.py runserver --settings=Pastebin.settings.development
    Your application is running at: http://localhost:8000/ in your browser.

Example