Skip to content

Commit

Permalink
update readme in root folder and modules/components
Browse files Browse the repository at this point in the history
  • Loading branch information
dluudevs committed Oct 2, 2024
1 parent a68e365 commit f2197f9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
### Getting Started

Ensure you are using node version 14.19.0 and npm version 6.14.6. To manage different versions of node, we recommend using a [node version manager](https://github.com/tj/n)

Navigate to `modules/components` and follow the README there for setup and development guides.

Move to the branch `portal-ui` and install the dependencies. Once completed, navigate to `modules/components` and follow the README there for setup and development guides.
36 changes: 31 additions & 5 deletions modules/components/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
# Data Portal Components
## Development Setup

## Roadmap
Make sure you are checked out in the `portal-ui` branch.

#### Aggregations
Ensure you are using node version `14.19.0` and npm version `6.14.6`. To manage different versions of node, we recommend using a [node version manager.](https://github.com/tj/n)
Please note Portal uses version node version `16.13.2` and npm version `9.1.2`

#### SQON aka "Current Filters"
Inside of `modules/components` you will need to create a file called `.npmrc`. This file is required to publish updates and properly installing the dependencies for this project.The `components` module is to be published in order for Portal to consume the latest changes. In this file you will want to add the following:

#### ResultsTable
```
@pilotdataplatform:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<PERSONAL_ACCESS_TOKEN>
```

If you do not have a personal access token you will need to create one via github. Hover over your profile, go to settings > developer settings > personal access tokens > Tokens (classic). Set the expiry date to a year from the date of creation and ensure you have only read / write package permissions.

![Github personal access token creation](docs/images/github-personal-access-token.png)

Now we're ready to install the packages. Ensure you are in `modules/components` and input `npm install` in the terminal. If you encounter any issues with installing your packages, it is likely your token has expired. The error message in the terminal should display a file path to inspect your logs for more detailed troubleshooting.

Upon completing the installation, input `npm run start` to start up the local server. Once it loads you will be required to login with your dev environment credentials, or if you have an instance of the dev environment opened you will be logged in automatically.

`modules/components/src/App.js` is the entry point of the local development server.

## Publishing

### Arranger

Once you have finished with your changes, the components module will have to be published. In order to do so, increment the version number in `module/components/package.json`. Now, in the terminal input `npm publish`. Using your credentials in the `.npmrc` file, this script will build the project and publish it to github's package repo.

### Portal

To get the latest updates, ensure you run `npm install` for the latest version of the arranger package. For example, to install arranger version 1.5.11 you will need to input `npm install @pilotdataplatform/arranger-components/@1.5.11.

Upon updating the version, ensure it runs correctly locally and submit the changes through a PR.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2197f9

Please sign in to comment.