| Product | Datastore Services API |
|---|---|
| Description | Single-page Vue app that is the frontend for the IATI Datastore. |
| Website | https://datastore.iatistandard.org |
| Related | IATI Datastore Services, IATI Validator |
| Documentation | https://developer.iatistandard.org/ |
| Technical Issues | https://github.com/IATI/datastore-search/issues |
| Support | https://iatistandard.org/en/guidance/get-support/ |
- Node.js: get version from
.nvmrcor if using nvm runnvm use
npm install
To run a development server using (./envs/.env.development vars):
npm start
You will want to navigate to http://localhost:3000/ to test as the CORS rules for Dev only allow http://localhost:3000/ not http://127.0.0.1:3000/
To run a development server using (./envs/.env.production vars):
npm run dev:production
To make a production build using (./envs/.env.development vars):
npm run build:development
To make a production build using (./envs/.env.production vars):
npm run build:production
To serve a production build locally for testing (NOTE: running the above servers will may not be suitable for running the tests against because they are significantly slower and the tests include some timed tests):
npm run serve
npm run cy:open
npm run cy:run-ci
npm run cy:run
ESLint and Prettier are employed for linting and formatting. Implemented following this guide: https://vueschool.io/articles/vuejs-tutorials/eslint-and-prettier-with-vite-and-vue-js-3/
It's recommended you install the following VSCode Extensions:
npm run lint
npm run format