motionrus / bookmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to bookmarks project.

  • The goal of the project is to allow users to store all the links in one place.

New Features

Currently, previews and smart searches are supported. This project uses Django 2.0 and Python version 3.6.2. Requests are written to the database and processed by the library in parallel. NTLK allows you to highlight keywords and implement smart search

Installation

Create a new environment and install requirements

$ mkdir bookmark
$ cd bookmark/
$ python3 -m venv venv
$ git clone https://github.com/rus-vista/bookmark.git
$ source venv/bin/activate
$ pip install -r bookmark/requirements.txt

Run

Create new DB(SQLite) and start project

$ cd bookmark
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver
...
Django version 2.0, using settings 'bookmarks.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Production

You need to add a file bookmarks/settings_local.py. Example of a production file with a postgres:

SECRET_KEY = 'TOKEN'
DEBUG = False
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'name_db',
        'USER': 'name_user',
        'PASSWORD': 'password',
        'HOST': 'ip-address or host',
        'PORT': '5432',
    }
}

About me

If you have any suggestions or wishes, you can send me a message in the telegram @motionrus

About


Languages

Language:HTML 72.1%Language:JavaScript 25.8%Language:Python 2.1%Language:CSS 0.0%