Skip to content

Commit

Permalink
Nextjs app and updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrienne committed Oct 15, 2024
1 parent 593f3c7 commit 31fd351
Show file tree
Hide file tree
Showing 37 changed files with 10,149 additions and 19 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Performance.gov

## Stand up a local sandbox
1. ddev start
2. dev composer install
3. ddev drush config:import --source=config
4. ddev drush uli

## Install frontend
1. cd `src frontend`
2. `npm install`
3. Copy `.env.example` to `.env.local`
4. `npm run dev`

ddev start
ddev composer install

8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"require": {
"composer/installers": "^2.0",
"cweagans/composer-patches": "^1.7",
"drupal/core-composer-scaffold": "^10.3",
"drupal/core-project-message": "^10.3",
"drupal/core-recommended": "^10.3",
Expand All @@ -25,7 +26,7 @@
"drupal/graphql_compose": "^2.2",
"drupal/group": "^3.2",
"drupal/login_gov": "^1.1",
"drupal/next": "^1.6",
"drupal/next": "^2.0@beta",
"drupal/type_tray": "^1.3",
"drupal/workflow": "^1.8"
},
Expand Down Expand Up @@ -102,6 +103,11 @@
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
},
"patches": {
"drupal/subrequests": {
"Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
}
}
},
"require-dev": {
Expand Down
32 changes: 16 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See https://next-drupal.org/docs/environment-variables
NEXT_PUBLIC_DRUPAL_BASE_URL=https://performance.ddev.site
NEXT_IMAGE_DOMAIN=performance.ddev.site

# Required for On-demand Revalidation
DRUPAL_REVALIDATE_SECRET=secret
4 changes: 4 additions & 0 deletions src/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "next",
"root": true
}
38 changes: 38 additions & 0 deletions src/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/
.next

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

/certificates/*
Loading

0 comments on commit 31fd351

Please sign in to comment.