The following sub-repository is dedicated to showcasing a few examples using RDKit.js with Angular.
The examples are live at angular.rdkitjs.com.
If you didn't go through the plain javascript examples already, it is recommended to do so before going forward:
First, fork the RDKit.js GitHub repository and run the remaining instructions from your fork.
- Git
- Node >= 14.x
- Yarn 1.22.19
Run the following command to install the RDKit.js project.
git clone https://github.com/<name of your fork>/rdkit-js.git && \
cd rdkit-js && \
yarn installOnce the project is installed, run the following command at the root of the RDKit.js repository to start the development server:
npm run angular:startYou are now ready to develop.
All angular.js examples are written in the ./examples/angular/examples folder.
To add a new example, make sure to respect the following checklist:
- Start a new git branch from the master branch and give it a meaningful name
- Use
ng g c examples/examples/<your-example-name>to generate a new component for your example. Use kebab-case for naming files. You will see a folder generated with a ts file, a HTML file and a css file. - Add your component to the main examples file under the appropriate section.
- Reference your example in SideBarComponent, again following the convention of other examples (this step will be removed in the future).
- Make sure your example respects the styling conventions using Bulma
- Make sure you formatted your code with
npm run format. - Make sure you have updated the code examples file with
npm run-script example-genwithin the Angular example directory.
Refer to any other Angular example in examples/angular/examples if you are unusure about any of the steps above.
Once you're done, make a pull request to the master branch of the main RDKit.js repository, and wait for the review!