This project is a WordPress plugin powered by PHP and React. With WordPress we're registering two custom post
types: Programs
and Organizations
.
These two custom post types are the backbone for a Vite/React/TypeScript app that renders a map on the frontend via a WordPress shortcode.
This tool is a map search tool to be used by users in the D.C./Maryland/Virginia area to find locations, programs and organizations offerings food for certain demographics.
- PHP:
^7.x
- Vite:
^4.x
- React:
^18.x
- TypeScript:
^5.x
- SASS:
^1.x
Setup Node and Composer packages to ensure code quality and formatting
Run the following to install node packages:
npm install
If you run into any issues installed please be sure you're using node v. ^18.x
.
Run the following to install composer packages:
composer install
If you run into any issues installing packages be sure your version of php is v. ^7.3.x
.
To ensure code quality and formatting consistency across developers and commits we're using pre-commits to handle linting, formatting and code sniffing.
Run the following to ensure lint-staged
is set up on your machine:
npx mrm@2 lint-staged
In some instances lint-staged
assumes hooks you want to set up so keep an eye on the pacakge.json
file for any new
hook file patterns. If any new ones are added please remove them.
- Programs
- Organizations
- Program Types
- Post type: Programs
- Venues
- Post type: Programs
- Audiences
- Post type: Programs