This project uses Strapi as a CMS backend. For most information about contributing to DA (e.g. our dev process and asking for help), please refer to the general DA contributing guide. This guide contains other information specific to contributing to this repo.
- Dev Environment Setup
- Running a Local Site
- Code Checks
- Learn More About Strapi
- API Testing
- Troubleshooting
git clone [email protected]:distributeaid/aggregated-public-information.git
cd aggregated-public-informationNode.js 18.17 or later is required
Node Version Manager (nvm) – used to manage Node.js versions:
- macOS/Linux: Node Version Manager (nvm)
- Windows: Node Version Manager for Windows
To build dependencies, you should also have yarn installed on your system. If it is not yet installed, you can run:
npm install --global corepack
corepack enable
hash -rOnce you have a development environment, you can set up your local site!
./setup.bashyarn installIn one terminal, run develop, this will live rebuild your application as you make changes:
yarn developIf you want auto-reload disabled, you can just run build and then start:
yarn build
yarn startyarn testNote
This depends on your application being built! If you don't run yarn develop then you must run yarn build after each change before running yarn test. We have provided yarn test:without-build as a convenience in this case.
If you are running locally, your site should be available in the output after you run yarn develop - you will see something like
One more thing...
Create your first administrator by going to the administration panel at:
┌─────────────────────────────┐
│ http://localhost:1337/admin │
└─────────────────────────────┘
If you run into trouble, please check out:
- How to reset your password
- To recover the email address you used to sign up, run:
npx strapi console
await strapi.query('admin::user').findMany()Before creating a pull request, test a final time and check for errors:
yarn check:allWe provide a couple of scripts to automatically fix linting and formatting issues, where possible:
yarn lint:fix
yarn format:fix- Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.
- Resource center - Strapi resource center.
- Strapi documentation - Official Strapi documentation.
- Strapi tutorials - List of tutorials made by the core team and the community.
- Strapi blog - Official Strapi blog containing articles made by the Strapi team and the community.
- Discord - Come chat with the Strapi community including the core team.
- Forum - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
- Awesome Strapi - A curated list of awesome things related to Strapi.
Feel free to check out the Strapi GitHub repository. Your feedback and contributions are welcome!
- Populate relations – Learn how to populate nested and relational data in Strapi API responses.
We use Bruno to create and run API tests. See bruno-test.md for setup and usage instructions.
If you run into any issues, reach out to the team on the #tech channel on Slack!