
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@development-framework/create-dm-app
Advanced tools
Tool for quickly creating a _data modelling_ app skeleton
Tool for quickly creating a data modelling app skeleton
By following these steps, you will have your own custom application up and running on your local machine.
Requirements:
Using the command (you can change my-app
to your application name)
npx @development-framework/create-dm-app my-app
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
This will create a new folder "my-app". Inside that folder, the initial project structure is generated and the transitive dependencies are installed.
Create-dm-app is using create-react-app so go to create-react-app to get a list of all possible commands, or just look inside the package.json file and under scripts.
To run your custom application locally, you will need an instance of DMSS running locally.
Go to the my-app
folder in a terminal and run the commands:
docker-compose pull
docker-compose up --build
To reset the database, open a new terminal window and navigate to the my-app
folder and run the commands:
docker-compose run --rm dmss reset-app
Note: it is recommended to use a python virtual environment before you install the dm-cli package
pip install dm-cli
Run the following command to upload the documents in the folder my-app/app to DMSS
dm reset app/
You must also upload documents from dm-job.
When you are in the my-app
folder in your terminal window, run the following command
docker-compose run --rm job-api dm -u http://dmss:5000 reset ../app
In your terminal window, go to the my-app
and run
dm create-lookup demo-app DemoApplicationDataSource/instances/recipe_links
When inside the my-app
folder in the terminal, run
yarn install
yarn start
or alternatively
npm install
npm start
The web app can now be reached at http://localhost:3000 in the web browser.
(Remember, you must have the docker-compose services running to use the web application)
The web page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.
When you’re ready to deploy to production, create a minified bundle with npm run build
.
In this repo, pre-commit has been used to ensure consistent code formatting. The pre-commit hook will run prettier formatting and analyze the JavaScript code using eslint .
To run pre-commit, it needs to be installed on your local machine with
pip install pre-commit
Once installed, pre-commit can be run with:
pre-commit run --all-files
src/plugins
. This will be your plugin, and must have a index.js
-file that has a default export
of the type export const plugins: TPlugin[]
src/plugins.js
Associate a blueprint type with a set of uiRecipes that uses the ui-plugin
CORE:RecipeLink
-entity (see app/data/DemoApplicationDataSource/instances/recipe_links/demoApp.json
as an
example)dm create-lookup demo-app DemoApplicationDataSource/instances/recipe_links
To use the Tree component from dm-core, visible data sources must be specified. If you want to change the datasource name or add new data sources, the visibleDataSources list defined in your App.tsx needs to be updated. In the demo-app, App.tsx only has one visible data source, DemoApplicationDataSource.
If you want to work on the core and don't want to release new core versions to see the changes in create-dm-app, then
change the @development-framework/dm-core
from inside package.json
to point to core locally
like link:./../data-modelling-tool/web/packages/dmt-core/
. You have to run yarn rollup
inside dm-core to get changes,
since this will bild a new dist that will be picked-up by create-dm-app.
If you run the DMSS API locally, it will by default be available at localhost:8000. If this is the case, you must update an environment variable. This is achieved by editing the start script in package.json:
"start": "REACT_APP_DMSS_URL=http://localhost:5000 react-app-rewired start"
The dm-cli can be used for resetting datasources. The recommended way to run the cli tool is to:
python -m venv .venv
source .venv/bin/activate
pip install dm-cli
dm reset app
(Note: it might be necessary to also reset the local DMSS data sources before resetting the demo app datasources,
this can be done by navigating to the DMSS repo and run the command "docker-compose run --rm dmss reset-app")FAQs
[![license-badge]][license] [![on-push-main-badge]][on-push-main-workflow] [![healthcheck-badge]][healthcheck-workflow]
The npm package @development-framework/create-dm-app receives a total of 2 weekly downloads. As such, @development-framework/create-dm-app popularity was classified as not popular.
We found that @development-framework/create-dm-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.