An open API service indexing awesome lists of open source software.

https://github.com/balewgize/tomar

Medium like website where users can read and write stories freely
https://github.com/balewgize/tomar

blog djagno medium

Last synced: 10 days ago
JSON representation

Medium like website where users can read and write stories freely

Awesome Lists containing this project

README

          


Tomar


Medium like website where users can read and share stories freely!


View Demo »



Use the following credentials to test the website without creating an account.

- Email: guest@tomar.com
- Password: guest

## About The Project

[![Screenshot](static/images/home-page.png?raw=true "Tomar")](https://tomar.up.railway.app/)

## Features
- Profile for users
- Bookmark and Like posts
- Draft and Published posts
- CRUD posts with permission
- Bootstrap 5 for frontend
- Follower and Following
- Search functionality
- Comment on posts
- Rich text editor (CKEditor)

(back to top)

### Built With
- Python/Django
- Bootstrap
- JavaScript/jQuery
- PostgreSQL
- Gunicorn
- Railway

(back to top)

## Getting Started

To get a local copy up and running follow these simple steps.

### Prerequisites

* Django

### Installation

1. Clone the repo and navigate to ```tomar``` directory
```
git clone https://github.com/balewgize/tomar.git
```
```
cd tomar
```
2. Install required packages (virtual environments recommended)
```
python3 -m venv venv && source venv/bin/activate
```
```
pip install -r requirements/local.txt
```
3. Provide credentials in *.env* (example in .env.dev file)
```
DJANGO_SECRET_KEY=
```
Use the following command to generate random *SECRET_KEY*
```
python3 -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
```
4. Run tests (each app can also be tested individually)
```
python manage.py test
```
5. Apply migrations and start the server
```
python manage.py migrate
```
```
python manage.py runserver
```
6. Goto http://127.0.0.1:8000 on your browser.

(back to top)

Thanks!