https://staging.admin.placehires.com
We're using Yarn instead of Npm here due to some issues
- Environmental Variables:
- You'll need correct variables defined in
.env.developmentfile - You'll also need
NPM_TOKENexported (~/.bashrc or whatever you use). This token should be your PAT withread:packagespermission. See how to create a token here: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
- You'll need correct variables defined in
- Server: navigate to backend repository
$ yarn
$ yarn startTo view GraphQL schema and docs, go to http://localhost:3999/graphql
We use tss-react as a replacement for legacy @mui/styles (v4 styling solution)
Isolate reusable components, and develop them using StoryBook. To run StoryBook, use the following command:
$ yarn storybookYou can read the guide in the introduction.
You can also view the latest live storybook here: https://develop--5febab14c80a270021a57c20.chromatic.com
Define GraphQL fragments and operations in src/apollo directory using .graphql files.
Then use the following command:
$ yarn generateThis automatically generates types, documents, and hooks based on their name in src/generated/graphqlTypes.tsx.
For example a mutation:
mutation VerifyRecruiter($id: ID!) {
verifyRecruiter(id: $id) {
id
verified
}
}generates useVerifyRecruiterMutation ready for use.
We use Prettier to format our code:
$ yarn format