Comments (2)
@mrmeyers99 I would use a lot of caution when sharing the same code between server and client, as some data should not be exposed to the client and some client methods would just muddy the server (see "Provide an all-encompassing solution"). That's not to say the same models could inherit from the same super class, and they could implement any extra bits that are necessary.
If you're not using Brick against an existing API, I'd also consider writing a modern API that still suits your needs but could be better than REST. Like protobuf, or websockets, or GraphQL.
I'd recommend checking out #106 and seeing if that provides any more clarity.
from brick.
Thanks, that is helpful, I'll follow that PR.
from brick.
Related Issues (20)
- Changing the defaultHeaders cancels pending changes HOT 5
- Upgrade http package HOT 4
- Supported types are null, byte[], double, long, boolean and String) HOT 1
- Fields with OfflineFirst() are not updated with the main document when fetching from the server HOT 9
- Function afterSave() is generated wrong HOT 7
- databaseFactoryFfi not save data in local HOT 1
- Outdated package dependencies HOT 1
- Support to windows not work HOT 3
- Adapter file not generated when uniquely identified field is a class and no primitive HOT 14
- multipart request HOT 8
- Feature: Support for more database adapters HOT 2
- Relative imports in models are not correctly transferred to brick.g.dart HOT 2
- Question (Perhaps Not an Issue) About topLevelKey HOT 2
- Dependencies Issue HOT 2
- Getting POST When I Need PUT HOT 5
- Handling Expired Access Keys in Offline Request Queue HOT 2
- Question: How to correctly upsert an association to a REST Provider? HOT 6
- Proposal: add the response details to the offline request queue HOT 4
- Documents that do not exist remotely are not deleted from local memory HOT 1
- Remove Items From Outbound Queue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brick.