Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@amplication/data-service-generator
Advanced tools
DSG (Data Service Generator) is the component responsible for the generation of source code by Amplication, and allows the integration of plugins into the code generation process.
DSG (Data Service Generator) is the component responsible for the generation of source code by Amplication, and allows the integration of plugins into the code generation process.
:bulb: Before you begin, make sure you have all the below installed:
node -v
Should be: v14.0.0
or newer
npm -v
Should be: 7.0.0
or newer
docker -v
Should start with: Docker version
git version
Should start with: git version
After cloning the repository open its root directory and run the following commands:
Install dependencies of the monorepo (execute in root directory):
npm install
npm run bootstrap
Build the Data Service Generator and its dependencies:
npm run build -- --scope @amplication/data-service-generator --include-dependencies
Open the data service generator directory
cd packages/data-service-generator
Generate the test data service app
npm run generate-test-data-service
Make sure you are in the data service generator directory (packages/data-service-generator
).
Once you are done making changes, run the following commands:
Format files (editors like VSCode can do it for you automatically)
npm run format
Lint files (editors like VSCode come with integration to display those continuously)
npm run lint
Run unit tests
npm test
(Optional) Rebuild the package
npm run build
Generate an application according to the test data definitions. Once generated you can install its dependencies and start it with npm and spin a database with Docker.
npm run generate-test-data-service
The test will generate code according to the test data definitions, run a Docker container with it, run a database docker container, and try to call the API endpoints. Make sure to build the library before executing it.
npm run test:e2e
npx lerna add --scope server-template $NAME_OF_DEPENDENCY
npx lerna add --scope admin-template $NAME_OF_DEPENDENCY
FAQs
DSG (Data Service Generator) is the component responsible for the generation of source code by Amplication, and allows the integration of plugins into the code generation process.
The npm package @amplication/data-service-generator receives a total of 2 weekly downloads. As such, @amplication/data-service-generator popularity was classified as not popular.
We found that @amplication/data-service-generator demonstrated a not healthy version release cadence and project activity because the last version was released 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.