This project aims to revamp the state pages of our website by transitioning from a PHP-based WordPress setup to a Next.js application. The new setup will pull data from both WordPress and CCDS APIs to create a more dynamic and user-friendly interface.
The goal of this project is to improve the overall user experience and performance of our state pages. We're achieving this by transitioning from a traditional WordPress setup to a modern Next.js-based application. This approach allows us to leverage the benefits of React and server-side rendering provided by Next.js.
Data required for each state page will be fetched from two sources:
- WordPress API - for metadata and state descriptions.
- CCDS API - for information on top communities in each state, among other things.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm or yarn
-
Clone the repository
git clone git@bitbucket.org:silvergroup-engineering/family-nextjs.git
-
Navigate into the project directory
cd your_repo_name
-
Install the dependencies
npm install
oryarn install
-
Run the development server
npm run dev
oryarn dev
-
Open http://localhost:3000 with your browser to see the result.
Deployment is handled by AWS Amplify. The project is currently deployed to the following environments:
Testing is handled by Jest and React Testing Library. To run the tests, run the following command:
npm run test
or
yarn test
- Next.js
- typescript
- WordPress API
- CCDS API
- Jest
- tailwindcss see package.json
- Santiago Ramirez - sanruiz
This project and its source code are proprietary and intended for exclusive use by SilverAssist. Distribution, reproduction, or use outside of SilverAssist is prohibited without explicit permission.