Comments (5)
I like the idea of generating the models (non-frontend-specific things) directly from the JSON Schema in the backend and I have given https://github.com/thoughtbot/ember-json-schema a try, but it does not work out of the box with our JSON Schema definitions.
It does not use the attributes
and relationships
keys from the schema and only relies on the properties
key, which is not defining a single property of the object (except for id
and type
which should be ignored anyway).
I think we should follow its idea to reduce work in the long run. Then, we would not need to duplicate our models in the frontend and the backend. We could fork the project and make it work with proper JSON Schema.
from ontohub-frontend.
With my fork at https://github.com/eugenk/ember-json-schema, this works. We need some conventions, though, concerning the JSON Schema files. They are be compiled in ontohub/ontohub-backend#71.
And we still need to resolve $ref
in the JSON Schema.
from ontohub-frontend.
Instructions to try this:
- backend:
git checkout 71-structure_json_schema_files
- backend:
rails s
- frontend:
git checkout 41-redo_mirage_config_from_from_scratch
- frontend:
ln -s <ontohub-backend-repo>/spec/support/api/schemas app/schema
(in the repository-root) - frontend:
ember s
- http://localhost:4200/ada/repo0
from ontohub-frontend.
I added a commit to the ember-plugin's repo that should resolve $ref
s, but it doesn't work because it tries to resolve them relative to the address (e.g. http://localhost:7357/2173/tests/other.json instead of the local path ./other
). I don't have an idea of how to do this.
Edit: Before, I said that I added a commit to the frontend branch. This was wrong...
from ontohub-frontend.
Closed in #62.
from ontohub-frontend.
Related Issues (20)
- Extend the git GUI by branches
- Extend the git GUI by tags
- Extend the git GUI by diffs
- Extend the git GUI by history
- Extend the git GUI by a text editor
- Try using formik for form & validation
- Consider removing flow-type (for now) HOT 1
- Reserved routes/names
- repository of DOL examples
- Check passwords against leaked passwords HOT 3
- Switch from styled-components to emotion HOT 1
- Code conventions HOT 5
- Scrolling rubber band effect makes white background visible HOT 1
- Use path-to-regexp to generate Link URLs
- Create an account activation page
- New plan for frontend
- Dependabot can't resolve your JavaScript dependency files
- Infinite loop of queries
- Add user and organization pages
- Add basic repository pages
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 ontohub-frontend.