📜 ⬆️ ⬇️

Service selection of names and names from idea to implementation or Django as an excellent platform for startups. Continuation

In the previous article I wrote how the startup namingservice.org began. In this topic, I will continue to describe the next stage of the idea materialization. After the “Vision of the project” document was ready, I thought that it would be great to put on a paper the views of the site, that is, how it should look, and how I imagined it.

Kinds


It all started with the look of the home page. It was supposed to give a brief idea of ​​the project, and contain a page header (logo, slogan, navigation, login and registration buttons), plus I decided that it would be useful to display orders directly on the main page with a brief description and price.

image

The result was a document consisting of 15 species, which formed the basis of the site design. What came out of this can be viewed directly on the site , but in order to feel the difference between what was designed and what came out, I will cite a few more basic types.
')
View "My Orders"

image

View "My order"

image

View "My account"

image

Data requirements


This document outlined the basic data requirements.

1 User Profiles

To store the personal settings of users is the standard table Django User.

2 User Accounts

User accounts reflect current user balance. Information stored in user accounts includes:

3 Transactions

Transactions keep a history of all transactions performed on user accounts. Information stored in transactions includes:

4 Orders

Orders contain all information about incoming, active and already completed orders. Information stored in orders includes:

5 Offers

It contains all the offers coming from users. Information stored in sentences includes:

6 Entity Types


7 Types of relationships

Entity TypeConnectionEntity TypeCardinality *Participation Rate **
ProfileIt hasScore1: MT: T
ScoreIt hasTransaction1: MP: T
ProfileIt hasOrder1: MP: T
ProfileIt hasSentence1: MP: T
OrderIt hasSentence1: MP: T

* Cardinality - the type of connection (1: M - one-to-many, M: N - many to many).
** Participation rate is obligatory, it is not necessary to have this connection for each tuple (line) of entity (table) (P is partial participation in the link, T is full participation in the link).

The result is a scheme that connects the database structure with applications Django Framework

image

This is where the design of the project was completed, after which there was no more strength and patience to design further, and I started writing code in the Django Framework.

Source: https://habr.com/ru/post/126437/


All Articles