-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
66 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,57 @@ | ||
# Semkov Gorodok blog | ||
# Semkov Gorodok blog | ||
|
||
## About | ||
## About | ||
|
||
[![Wagtail 2.12](https://img.shields.io/badge/wagtail-2.12-green.svg)](https://pypi.org/project/wagtail/) | ||
[![Wagtail 5.2.2](https://img.shields.io/badge/wagtail-5.2.2-green.svg)](https://pypi.org/project/wagtail/) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) | ||
[![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://bitbucket.org/manti_by/semkov/raw/c61190bd891b532908a64fdbdb1cd53a7f259c87/LICENSE) | ||
|
||
Author: Alexander Chaika <manti.by@gmail.com> | ||
|
||
Source link: https://github.com/manti-by/semkov | ||
|
||
Requirements: Docker, Python 3.9, SQLite | ||
Requirements: Docker, Python 3.11, PostgreSQL | ||
|
||
|
||
## Setup development environment | ||
## Setup development environment | ||
|
||
1. Install virtualenv and sqlite3 | ||
1. Create and activate virtualenv | ||
|
||
$ sudo apt install virtualenv sqlite3 | ||
```shell | ||
virtualenv .venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
2. Install, create and activate virtualenv | ||
2. Clone sources and install pip packages | ||
|
||
$ pip install virtualenv | ||
$ virtualenv -p python3 --no-site-packages --prompt=smk- venv | ||
$ source venv/bin/activate | ||
```shell | ||
git clone git@github.com:manti-by/semkov.git . | ||
pip install -r requirements.txt | ||
``` | ||
|
||
3. Clone sources and install pip packages | ||
|
||
$ git clone git@github.com:manti-by/semkov.git && cd semkov/ | ||
$ pip install -r requirements/dev.txt | ||
3. Run migration and local dev server | ||
|
||
4. Run migration and local dev server | ||
```shell | ||
python manage.py migrate | ||
python manage.py runserver | ||
``` | ||
|
||
$ python manage.py migrate | ||
$ python manage.py runserver | ||
|
||
|
||
**NOTICE**: Before pushing your changes, run next commands | ||
|
||
$ make check | ||
**NOTICE**: Before pushing your changes, run the next commands | ||
|
||
```shell | ||
make django-check | ||
make check | ||
make test | ||
``` | ||
|
||
## Run in production | ||
|
||
To run app in production mode, clone repo, build image and run it | ||
|
||
$ git clone git@github.com:manti-by/semkov.git && cd semkov/ | ||
$ make build | ||
$ docker-compose up -d | ||
$ make migrate static | ||
```shell | ||
git clone git@github.com:manti-by/semkov.git . | ||
make build | ||
docker compose up -d | ||
make migrate | ||
make static | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,4 +63,4 @@ main.home .main-menu li li a { | |
|
||
main.home .main-menu li li a:hover { | ||
color: #bf4b31; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,4 @@ | |
|
||
.position tr:hover { | ||
background-color: #c6e0c5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
{ | ||
"name": "Semkov Gorodok", | ||
"short_name": "Semkov Gorodok", | ||
"start_url": "https://semkov-gorodok.by/", | ||
"display": "standalone", | ||
"background_color": "#FFFFFF", | ||
"theme_color": "#ff6f61", | ||
"display": "standalone", | ||
"icons": [ | ||
{ | ||
"src": "/static/img/appicon/18x18.png", | ||
"sizes": "18x18", | ||
"src": "/static/img/appicon/18x18.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/24x24.png", | ||
"sizes": "24x24", | ||
"src": "/static/img/appicon/24x24.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/36x36.png", | ||
"sizes": "36x36", | ||
"src": "/static/img/appicon/36x36.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/48x48.png", | ||
"sizes": "48x48", | ||
"src": "/static/img/appicon/48x48.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/72x72.png", | ||
"sizes": "72x72", | ||
"src": "/static/img/appicon/72x72.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/96x96.png", | ||
"sizes": "96x96", | ||
"src": "/static/img/appicon/96x96.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/144x144.png", | ||
"sizes": "144x144", | ||
"src": "/static/img/appicon/144x144.png", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/static/img/appicon/192x192.png", | ||
"sizes": "192x192", | ||
"src": "/static/img/appicon/192x192.png", | ||
"type": "image/png" | ||
} | ||
] | ||
} | ||
], | ||
"name": "Semkov Gorodok", | ||
"short_name": "Semkov Gorodok", | ||
"start_url": "https://semkov-gorodok.by/", | ||
"theme_color": "#ff6f61" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
User-agent: * | ||
User-agent: * |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters