First, ensure that if you have an SSH key set up, that your SSH key has SSO configured. If not, follow this guide to configure that.
An SSH key is not required, but recommended and a lot easier to manage with SSO as opposed to HTTP remotes, which requires you to manage an access token.
- Fork this repository.
- Clone your forked repository.
- Add an additional remote to this upstream repository. You'll use this remote to sync your own fork with the team's contributions.
- Do this by running
git remote add upstream [email protected]:equinor/data-marketplace.git
. - If you now run
git remote --verbose
you should see both anorigin
and anupstream
remote.
- Do this by running
- Make sure you're on the correct version of Node. If you have NVM installed,
simply run
nvm use
in your terminal of choice. If you don't have NVM installed, it's highly recommended. - Install Node dependencies by running
npm install
in your terminal. - Copy
.env.template
and fill in the required values (cp .env.template .env.local
) - Start up the development server by running
npm run dev
.
In lieu of functioning user authentication and authorization, we have some scripts to generate mock data. They can all be found in the ./scripts
directory.
To generate mock data, you can run npm run seed:mock:all
to generate all mock schemas.
If you only want to generate specific mock schemes, you can run either of the following (keep in mind some of the schemas have dependencies to other schemas):
npm run seed:mock:assets
npm run seed:mock:popular-assets
npm run seed:mock:tags