YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Getting Started
- System requirements
- Node.JS v18
- In the server directory:
- Set server environment variables.
Create a
.envfile and copy the contents from .env.sample - Install dependencies
yarn - Start the dev server
yarn start
- Set server environment variables.
Create a
- From another terminal, in the client directory:
- Install dependencies
yarn - Start the client
yarn start
- Install dependencies
Getting Started (Docker)
Instead of following the steps above, you can also use Docker to set up your environment.
- System requirements
- Run
docker-compose upfrom the root directory to spin up the application.- Note:
yarncan sometimes take a long time to run and may appear to get stuck at certain steps. This is a known problem and is expected.
- Note:
- Enter
Ctrl-Cin the same same terminal ordocker-compose downin a separate terminal to shut down the server.
Verify That Everything Is Set Up Correctly
If your application is running correctly, you should be able to access it from your browser by going to http://localhost:3000/. The application will start at a user registration page. You should be able to register a new user, click Finish on the next screen, and be logged in.
Helpful Commands
Server
From inside the server directory:
yarn prettier --write .: Runs autoformatter.yarn test: This repository contains a non-comprehensive set of unit tests used to determine if your code meets the basic requirements of the assignment. Please do not modify these tests.yarn seed: Resets database and populates it with sample data.
Client
From inside the client directory:
yarn prettier --write .: Runs autoformatteryarn cypress run: This repository contains a non-comprehensive set of tests used to determine if your code meets the basic requirements of the assignment. To run these tests, you must have the client running in a separate terminal. Please do not modify these tests.
Common Setup Errors
- If you encounter an error related to
secretOrPrivateKeywhen attempting to make a request, please ensure you have created a .env file in the root directory as per the Getting Started instructions. - You might encounter
ERR_DLOPEN_FAILEDwhen you try to install dependencies locally then run the server in docker (or vice versa). In case of error, try removing thenode_modulesdirectory and restartdocker-compose up.
Instructions
- Follow the instructions listed in the assessment guide. A basic data query has been provided to retrieve the necessary form steps.
- Don’t change tests - make sure your markup aligns with the existing tests. Otherwise, any other changes are fair game.
- Don’t be satisfied with just making it work functionally. Ensure that the code / architecture meets your expectations.
- Functionality is priority over style, but do your best to align with the style specified in the provided Figma (mobile friendly not necessary).
- If you have a preferred state management approach, please add and use it.
- If you have a preferred styling approach, please add and use it.
- All buttons should be styled and behave the same.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support