Skip to content

An Agile Platform for Product Engineering. Create your team, set sprint goals, track waste and play planning poker to help estimate your stories

License

Notifications You must be signed in to change notification settings

michaeljwright/agile-lead-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Node.js 18v >= always use NVM locally
  • Firebase (Auth, Firestore, Analytics)

Clone the repo

$ git clone https://github.com/michaeljwright/agile-lead-platform.git

$ cd agile-lead-platform

Setup

  1. Copy .env-example and rename to .env-local
  2. Go to https://firebase.google.com and create a project for a webapp. Then add the details to the .env-local file.
  3. Create a Firebase firestore db and set rules to those within firestore-rules.txt
  4. Remember to change the SITE_URL in .env-local if you are using a different server or port.
  5. If you're deploying to a live environment, its worth setting ANONYMOUS_SIGNIN_ENABLED in your env to blank (not false).

Install & Run

$ npm install
# or
$ yarn

# Run in Development
$ npm run dev
# or
$ yarn dev

# Run in Production
$ npm run build
$ npm run start
#or
$ yarn build
$ yarn start

Setup & Run Tests

A lot of work needs doing on the test coverage. We are working on it!

Jest Unit Tests

To run the unit tests, simply run npm test

Cypress E2E Tests

To run the E2E tests, you need to jump through a few hoops due to Firebase auth etc.

  1. Generate and download a service account as described in https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments
  2. Create the file ./serviceAccount.json in your project root and add the contents of the downloaded json file from above.
  3. Create the file ./cypress.env.json in your project root and add the following below.
{
	"TEST_UID": "<YOUR API KEY>",
	"FIREBASE_PROJECT_ID": "<YOUR API KEY>",
	"FIREBASE_API_KEY": "<YOUR API KEY>"
}
  1. Run the tests with cypress using npx cypress open and then selecting the specific tests you want to run.