Skip to content

Commit

Permalink
refactor: full api ready to realtime fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darekf77 committed Jun 27, 2024
1 parent f794aed commit 26d4bcb
Show file tree
Hide file tree
Showing 87 changed files with 449 additions and 1,483 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ yarn-error.log
testem.log
/typings
app.hosts.ts
/**/*._auto-generated_.ts
/linked-repos

/tests-environments
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"trailingComma": "all",
"bracketSameLine": true,
"printWidth": 80,
"singleAttributePerLine": true
"singleAttributePerLine": true,
"endOfLine": "auto"
}
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
[NodeJS](https://nodejs.org/en/)

\+ [TypeORM](https://typeorm.io/)
- [sqlite](https://github.com/WiseLibs/better-sqlite3) - SUPPORTED
- [sql.js](https://sql.js.org) - SUPPORTED IN WEBSQL MODE
- [mysql](https://www.mysql.com/) - support in progress
- [postgress](https://www.postgresql.org) - support in progress
- [mongo](https://www.postgresql.org) - support in progress
- [sql.js](https://sql.js.org) - NODEJS SERVER MODE
- [sql.js](https://sql.js.org) - *WEBSQL SERVER MODE
- [mysql](https://www.mysql.com/) - SERVER IN DOCKER (work in progress)

\+
[Electron](https://www.electronjs.org/) desktop apps (support in progress)
[Electron](https://www.electronjs.org/) desktop apps (work in progress)

\+
[Storybook](https://storybook.js.org/docs/get-started/angular) showcase (work in progress)

<ins>backend/frontend [*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript) apps/libs.</ins>

Expand Down
30 changes: 14 additions & 16 deletions projects/container-v16/gen-examples/app-extended/my-entity/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,24 @@ export class MyEntityModule { }
//#endregion
//#endregion

var MainContext = Firedev.createContext(()=>({
contextName: 'MainContext',
host,
controllers: {
// PUT FIREDEV CONTORLLERS HERE
},
entities: {
// PUT FIREDEV ENTITIES HERE
},
database: true,
}));

//#region firedev start function
async function start() {
// Firedev.enableProductionMode();

const context = await Firedev.init({
host,
controllers: [
// PUT FIREDEV CONTORLLERS HERE
],
entities: [
// PUT FIREDEV ENTITIES HERE
],
//#region @websql
config: {
type: 'better-sqlite3',
database: 'tmp-db.sqlite',
logging: false,
}
//#endregion
});
c
await MainContext.initialize();
//#region @backend
if (Firedev.isNode) {
context.node.app.get('/hello', (req, res) => {
Expand Down
4 changes: 2 additions & 2 deletions projects/container-v16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@
"file-loader": "1.1.5",
"file-saver": "2.0.5",
"file-type": "18.5.0",
"firedev": "^16",
"firedev-crud": "16.444.5",
"firedev-crud-deamon": "16.444.5",
"firedev-ports": "16.444.5",
Expand Down Expand Up @@ -673,8 +674,7 @@
"webpack-dev-middleware": "~6.0.2",
"webpack-dev-server": "~4.13.2",
"yup": "1.1.1",
"zone.js": "~0.13.0",
"firedev": "^16"
"zone.js": "~0.13.0"
},
"devDependencies": {},
"license": "UNLICENSED",
Expand Down

This file was deleted.

This file was deleted.

87 changes: 0 additions & 87 deletions projects/container-v18/gen-examples/app-extended/my-entity/app.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 26d4bcb

Please sign in to comment.