https://github.com/david2261/investor
News, blog and investor/trader community. With us you will be able to start your way in investing and increasing your capital.
https://github.com/david2261/investor
axios django docker drf investing nginx python react
Last synced: 3 months ago
JSON representation
News, blog and investor/trader community. With us you will be able to start your way in investing and increasing your capital.
- Host: GitHub
- URL: https://github.com/david2261/investor
- Owner: David2261
- License: gpl-3.0
- Created: 2021-06-24T20:20:54.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-02-26T17:38:26.000Z (4 months ago)
- Last Synced: 2026-02-26T23:44:34.037Z (4 months ago)
- Topics: axios, django, docker, drf, investing, nginx, python, react
- Language: TypeScript
- Homepage:
- Size: 65.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InvestorSite
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FDavid2261%2FPython_Apps.git)
[](https://github.com/David2261/Investor/issues)
[](https://github.com/David2261/Investor/blob/main/LICENSE)
[](https://git.io/typing-svg)
## Tools
* 📋 Languages:
-  
* 📚 Frameworks, Platforms and Libraries:
-     
* 💾 Data Base:
-  
* 💻 IDEs/Editors:
- 
-
## Description
_I have written a website where an investor and a trader can: read the latest news related to finance, share their impressions about the state of the market and see the comments of other market participants_
## Topics
```
- Investing
- Trading
- News
- Comments
```
## Getting Started
- Virtual environment
- pip install virtualenv
- Activate
- venv\Scripts\activate
- Install tools
- pip install -r requirements
- Run django server
1. python manage.py makemigrations
2. python manage.py migrate
3. python manage.py runserver
- Run Node server
```bash
cd hello/apps/frontend
npm run dev
```
## Example
```python
# Блок для создания статей
class Article(models.Model):
Idea = 'ID'
Learn = 'LN'
Motivation = 'mt'
Blog = 'bl'
# Переменная по созданию определенных категорий, т.е.
# на каждой странице своя тема.
CATEGORY = [
(Idea, 'Idea'),
(Learn, 'Learn'),
(Motivation, 'Motivation'),
(Blog, 'Blog'),
]
title = models.CharField('Название статьи', max_length = 120)
text = HTMLField('Текст статьи')
genre = models.ManyToManyField(
Genre,
help_text="Select a genre for this article"
)
category = models.CharField(
max_length=2,
choices=CATEGORY,
default=Blog,
)
views = models.IntegerField('Просмотры', default=0)
image = models.ImageField(
null = True,
blank=True,
upload_to='Article',
help_text='150x150px',
verbose_name='Изображение'
)
pub_date = models.DateTimeField('Дата публикации', auto_now_add = True)
content = HTMLField(null=True)
def display_genre(self):
return ', '.join([ genre.name for genre in self.genre.all()[:3] ])
display_genre.short_description = 'Genre'
def __str__(self):
return self.title
def was_published_recently(self):
return self.pub_date >= (
timezone.now() - datetime.timedelta(days = 7)
)
class Meta:
verbose_name = 'Статья'
verbose_name_plural = 'Статьи'
ordering = ["-id", "-pub_date"]```
```