-
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.
adding technologies functionality, routing, domains, databases,...
- Loading branch information
1 parent
a5520c1
commit a1e5585
Showing
27 changed files
with
2,253 additions
and
12 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.angular import Angular | ||
|
||
angular = [ | ||
Angular( | ||
question='Angular questions 1', | ||
answer='Angular je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='angular1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Angular( | ||
question='Angular questions 2', | ||
answer='Angular je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='angular1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Angular( | ||
question='Angular questions 3', | ||
answer='Angular je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='angular1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.javascript import JavaScript | ||
|
||
javascript = [ | ||
JavaScript( | ||
question='JavaScript questions 1', | ||
answer='JavaScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='javascript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
JavaScript( | ||
question='JavaScript questions 2', | ||
answer='JavaScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='javascript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
JavaScript( | ||
question='JavaScript questions 3', | ||
answer='JavaScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='javascript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.mongodb import MongoDb | ||
|
||
mongodb = [ | ||
MongoDb( | ||
question='MongoDb questions 1', | ||
answer='MongoDb je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='mongodb.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
MongoDb( | ||
question='MongoDb questions 2', | ||
answer='MongoDb je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='mongodb.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
MongoDb( | ||
question='MongoDb questions 3', | ||
answer='MongoDb je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='mongodb.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.python import Python | ||
|
||
python = [ | ||
Python( | ||
question='Python questions 1', | ||
answer='Python je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='python.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Python( | ||
question='Python questions 2', | ||
answer='Python je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='python.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Python( | ||
question='Python questions 3', | ||
answer='Python je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='python.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.typescript import TypeScript | ||
|
||
typescript = [ | ||
TypeScript( | ||
question='TypeScript questions 1', | ||
answer='TypeScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='typescript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
TypeScript( | ||
question='TypeScript questions 2', | ||
answer='TypeScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='typescript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
TypeScript( | ||
question='TypeScript questions 3', | ||
answer='TypeScript je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='typescript.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import datetime | ||
|
||
from src.domain.vue import Vue | ||
|
||
vue = [ | ||
Vue( | ||
question='Vue questions 1', | ||
answer='Vue je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='vue1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Vue( | ||
question='Vue questions 2', | ||
answer='Vue je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='vue1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True), | ||
Vue( | ||
question='Vue questions 3', | ||
answer='Vue je framework, ki ga dela Google in je zelo priljubljen.', | ||
image='vue1.jpg', | ||
datum_vnosa=datetime.datetime.now(), | ||
).dict(by_alias=True) | ||
] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import datetime | ||
from typing import Optional | ||
|
||
from bson import ObjectId | ||
from pydantic import BaseModel, Field | ||
|
||
|
||
class Angular(BaseModel): | ||
id: Optional[str] = Field(alias='_id', default_factory=lambda: str(ObjectId())) | ||
question: str | ||
answer: str | ||
image: str | ||
datum_vnosa: datetime.datetime = Field(default_factory=datetime.datetime.now) |
Oops, something went wrong.