Proiectul este arhivat in timpul neatentiei, poate fi mentinut in curand.

Denovel este un cadru bazat pe web realizat de Muhammad Fauzan. Denovel este inspirat de Laravel.

Cuprins

  • Cuprins
  • Instalare
  • Utilizare
    • Denomand
      • Ajutor
      • Creati un controler
      • Creati un middleware
      • Creati un model
      • Creati un furnizor
    • Model
      • Exemplu de model
      • Optiuni camp model
      • Tipuri de date model
      • Relatia model
    • Controlor
      • Utilizarea validarii
  • ???? Contribuind
  • ???? Licenta

Instalare

  1. Clone Repository
git clone https://github.com/fauzan121002/denovel.git cd denovel
  1. Deschideti .env apoi modificati-l dupa informatiile bazei de date
PORT = 3000 BASE_URL = http: // localhost: 3000 # doar suport mysql, mongo, sqlite si postgres # puteti intampina unele probleme in mariaDB (mysql) # a se vedea problema aici https://github.com/manyuanrong/deno_mysql / issues / 29 DB_CONNECTION = postgres DB_HOST = localhost DB_NAME = denovel DB_USER = nume de utilizator DB_PASS = parola DB_PORT = 5432
  1. Rulati serverul
deno run -A – server instabil.ts

sau puteti utiliza denon (asigurati-va ca instalati deja denon in computerul dvs. local, consultati ghidul aici)

denon run -A –unstable server.ts

Utilizare

Denomand

Denomand este interfata oficiala a liniei de comanda pentru Denovel

Ajutor

deno run -A – instabil denom.ts ajuta

Creati un controler

deno run -A –unstable denomand.ts controller –name </YourControllerName>

Creati un middleware

deno run -A –stare middleware denomand.ts –name </YMMiddlewareName>

Creati un model

deno run -A –unstable denomand.ts model –name </YourModelName>

Creati un furnizor

deno run -A –stabil furnizor denomand.ts –name </YourProviderName>

Model

DenoDB este MySQL, SQLite, MariaDB, PostgreSQL si MongoDB ORM pentru Deno utilizat in prezent de Denovel

Exemplu de model

clasa User extinde Model {static table = “utilizatori”; timestamp-uri statice = false; campuri statice = {id: {primaryKey: true, autoIncrement: true}, nume de utilizator: DataTypes.STRING, parola: DataTypes.STRING}; }

Optiuni camp model

campuri statice = {email: {type: DataTypes.STRING, unique: true, allowNull: false, length: 50,},};

Optiuni de camp:

Optiune Tip de utilizare Tipuri de date Lista booleana unica allowNull lungime booleana intreaga

Tipuri de date model

Exemplu de utilizare a booleanului si intregului:

clasa BlockedUsers extinde Modelul {static table = “blocked_users”; timestamp-uri statice = false; campuri statice = {id: {primaryKey: true, autoIncrement: true,}, user_id: {type: DataTypes.INTEGER,}, is_verified: {type: DataTypes.BOOLEAN,}}; }
Lista tipurilor de date

Mai multe tipuri de date:

Tipuri BIG_INTEGER INTEGER DECIMAL FLOAT UUID BOOLEAN BINARY ENUM STRING TEXT DATA DATETIME TIME TIMESTAMP JSON JSONP

Relatia model

Unu la unu :
importati {db, DataTypes, Model} din „../../vendor/Denovel/Support/Facades/DB.ts”; importati {Relatii} din „https://deno.land/x/denodb/mod.ts”; clasa Proprietar extinde Modelul {// ..

masaje final feliz jovenes zorras
porno caca follada por su jefe
porno maduras en español comic maduras
porno casero españa mamadas a dos bocas
tetas en la playa pollones enormes
intercambio amateur mama incesto
porno comic español se folla a su hijo
videos gays españoles porno españa casero
negros follando a blancas humillada y follada
chochitos jovencitos follame xxx
guarras españolas porno iberico
chantaje y lujuria porno maduras en español
las mejores folladas penes negros
videos de sexo en español peliculas porno de viejas
muy maduras follando mamas cachondas
hentai audio español abuelos calientes
pollas arabes porno de abuelas
descargar pelis pornos milf squirt
Keyword mi vecina me folla
abuelas porno porno agresivo

. // Obtineti o companie legata de acest proprietar afacere statica () {return this.hasOne (Business); }} clasa Business extinde Modelul {// … // Obtineti un proprietar legat de acest proprietar static al companiei () {return this.hasOne (Proprietar); }} Relationships.oneToOne (Business, Proprietar); db.link ([Proprietar, afacere]);

De la unul la multi
importati {db, DataTypes, Model} din „../../vendor/Denovel/Support/Facades/DB.ts”; importati {Relatii} din „https://deno.land/x/denodb/mod.ts”; clasa Proprietar extinde Modelul {tabel static = „proprietari”; campuri statice = {id: {type: DataTypes.STRING, primaryKey: true,}, nume: DataTypes.STRING,}; afaceri statice () {return this.hasMany (Business); }} clasa Business extinde Modelul {tabel static = „afaceri”; campuri statice = {id: {type: DataTypes.STRING, primaryKey: true,}, name: DataTypes.STRING, ownerId: Relationships.belongsTo (Owner),}; static owner () {return this.hasOne (Owner); }} db.link ([Proprietar, companie]);
Multe la Multe
importati {db, DataTypes, Model} din „../../vendor/Denovel/Support/Facades/DB.ts”; importati {Relatii} din „https://deno.land/x/denodb/mod.ts”; clasa Proprietar extinde Modelul {tabel static = „proprietari”; campuri statice = {id: {type: DataTypes.STRING, primaryKey: true,}, nume: DataTypes.STRING,}; afaceri statice () {return this.hasMany (Business); }} clasa Business extinde Modelul {tabel static = „afaceri”; campuri statice = {id: {type: DataTypes.STRING, primaryKey: true,}, nume: DataTypes.STRING,}; proprietari statici () {return this.hasMany (Owner); }} const BusinessOwner = Relationships.manyToMany (Business, Owner); db.link ([BusinessOwner, Business, Owner]);

Informatiile viitoare :

  • Unu la unu
  • De la unul la multi
  • Multi la multi

Controlor

Utilizarea validarii

post asincronizat ({request, response, params}: RouterContext) {const body = await request.body (); const [passes, errors] = await super.validate (body.value, {todo: ‘required | string’}); // atunci poti face orice cu treceri, erori si valoare corporala}

???? Contribuind

Contributiile, problemele si solicitarile de functii sunt binevenite, asigurati-va ca cititi ghidul de contributie

???? Licenta

Acest proiect este licentiat in conditiile licentei MIT