
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
[](https://github.com/equinor/create-dm-app/actions/workflows/on-schedule-nightly.yaml)
A tool for quickly creating a data modelling app.
By following these steps, you will have your own custom application up and running on your local machine.
Requirements:
Create a new app by running (change my-app
to your application name).
npx @development-framework/create-dm-app my-app
This will create a new folder my-app
and inside that folder, the initial project structure is generated and the transitive dependencies are installed.
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
The dependent services (DMSS, job and databases) are specified in the docker compose file called docker-compose.yaml
.
Go to the my-app
folder in a terminal and run the commands to start the services:
docker-compose pull
docker-compose up --build
The dm-cli can be used for resetting datas sources. The recommended way to run the cli tool is to:
python -m venv .venv
source .venv/bin/activate
pip install dm-cli
Run this commands that will upload to DMSS any entities, blueprints and recipes register under the data source folder:
./reset-app.sh
The script uses dm-cli, so the venv needs to be activated before running the script.
NOTE: This script must be run every time a modification is done in any files in the
app/DemoApplicationDataSource/
folder.
When inside the my-app
folder in the terminal, run
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
.
Remote DMSS: The app can be connected to any DMSS instance you want.
This template uses an application entity to control the behavior of the app. This entity can be seen at app/data/DemoApplicationDataSource/DemoApplication/entities/demoApplication.json
. The .env
points to this application entity, which will be loaded and used to select UI plugin to be shown. The recipe that defines what to show can be seen at app/data/DemoApplicationDataSource/DemoApplication/recipes/demoApp.json
. There also exist default recipes that can be seen at app/data/DemoApplicationDataSource/DemoApplication/recipes/appDefault.recipe.json
.
URLs to services are controlled by environment variables in the .env
file, by default this will point to the services specified in the docker-compose.yaml
file.
src/plugins
. This will be your plugin.src/plugins/index.tsx
-file that contains list of local plugins to load.Associate a blueprint type with a set of ui recipes that uses the ui-plugin.
CORE:RecipeLink
-entity. See app/data/DemoApplicationDataSource/DemoApplication/instances/recipe_links/demoApp.json
as an example.reset-app.sh
so that the recipe link is uploaded to DMSS.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
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:./../dm-core-packages/packages/dm-core/
. You have to run yarn rollup
inside dm-core to get changes, since this will build a new dist that will be picked-up by create-dm-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.