Skip to content

distributeaid/aggregated-public-information

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

619 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

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.

Table of Contents

Dev Environment Setup

Clone this repository

git clone [email protected]:distributeaid/aggregated-public-information.git
cd aggregated-public-information

Install nvm

Node.js 18.17 or later is required

Node Version Manager (nvm) – used to manage Node.js versions:

Install yarn

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 -r

Running a Local Site

Once you have a development environment, you can set up your local site!

Set Up Local Private Keys

./setup.bash

Install your packages

yarn install

Start Your Server

In one terminal, run develop, this will live rebuild your application as you make changes:

yarn develop

If you want auto-reload disabled, you can just run build and then start:

yarn build
yarn start

Run Server Tests

yarn test

Note

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.

View the Site and Set Up an Admin User

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:

npx strapi console
await strapi.query('admin::user').findMany()

Code Checks

Before creating a pull request, test a final time and check for errors:

yarn check:all

We provide a couple of scripts to automatically fix linting and formatting issues, where possible:

yarn lint:fix
yarn format:fix

Learn more about Strapi

  • 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!

API Usage

  • Populate relations – Learn how to populate nested and relational data in Strapi API responses.

API Testing

We use Bruno to create and run API tests. See bruno-test.md for setup and usage instructions.

Troubleshooting

If you run into any issues, reach out to the team on the #tech channel on Slack!