sunny-villas

所属分类:PostgreSQL
开发工具:TypeScript
文件大小:15039KB
下载次数:0
上传日期:2021-02-05 11:45:17
上 传 者sh-1993
说明:  PostgresSQL,Attain,React,Deno酒店预订应用程序。
(A PostgresSQL, Attain, React, Deno hotel booking app.)

文件列表:
controllers (0, 2021-02-05)
controllers\bookingController.ts (531, 2021-02-05)
controllers\dealController.ts (796, 2021-02-05)
controllers\routers.ts (582, 2021-02-05)
controllers\userController.ts (547, 2021-02-05)
controllers\utils (0, 2021-02-05)
controllers\utils\PostgresService.ts (3682, 2021-02-05)
controllers\utils\TestService.ts (3460, 2021-02-05)
controllers\utils\auth (0, 2021-02-05)
controllers\utils\auth\Tokenizer.ts (1000, 2021-02-05)
controllers\utils\helpers (0, 2021-02-05)
controllers\utils\helpers\Postgres.ts (1972, 2021-02-05)
controllers\utils\helpers\database.ts (307, 2021-02-05)
controllers\utils\mod.ts (2699, 2021-02-05)
controllers\utils\models (0, 2021-02-05)
controllers\utils\models\authData.ts (96, 2021-02-05)
controllers\utils\models\booking.ts (132, 2021-02-05)
controllers\utils\models\deal.ts (122, 2021-02-05)
controllers\utils\models\serviceDao.ts (685, 2021-02-05)
controllers\utils\models\user.ts (116, 2021-02-05)
database.sql (453, 2021-02-05)
global.d.ts (68, 2021-02-05)
scripts (0, 2021-02-05)
scripts\addDeal.ts (1565, 2021-02-05)
scripts\development.ts (767, 2021-02-05)
server.tsx (499, 2021-02-05)
serverDeps.ts (423, 2021-02-05)
tsconfig.json (209, 2021-02-05)
types (0, 2021-02-05)
types\csstype (0, 2021-02-05)
types\csstype\index.d.ts (1595463, 2021-02-05)
types\props-types (0, 2021-02-05)
types\props-types\index.d.ts (3686, 2021-02-05)
types\react (0, 2021-02-05)
types\react\global.d.ts (7039, 2021-02-05)
types\react\index.d.ts (132810, 2021-02-05)
view (0, 2021-02-05)
... ...

# Sunny Villas Created with the server side rendering for Attain Framework. ## Backend Architecture This backend is a fully object-oriented backend, meaning you can change the database service with just one line of code. To create a new database service, create a new TypeScript class and implement the `serviceDao` interface located in `controllers/utils/models`.
You can use any database you want, as long as you return the right information. This project uses a `PostgreSQL` database. The `Postgres` helper is responsible for querying the data in the database. This helper is used by the `PostgresService` to query data and return it in the right place. In order for the server to use your service, go to `controllers/utils/mod.ts` and change the definition of the `service` variable. The controllers will now use your service automatically. ## Frontend Artchitecture This project uses React.js and MaterialUI for unconditioning responsive design. ### Pages - `/` - the home page - `/login` and `/signup` - authentication pages. - `/bookings` for the user's list of bookings. - `/deals` for new available deals. - `/booking/:bid` for a detailed booking page. - `/deal/:id` for a detaled deal page. ## Avaliable Scripts ### attain dev start dev server. ### attain build build static and view files. ### attain start start production server which is not watching the file changes.

近期下载者

相关文件


收藏者