- Install volta
- Install yarn
volta install yarn
- Install local dependencies
yarn
- Copy enviroment variables
Create a new file
.env
at root level and copy its content from.env.example
- Setup avoiding CORS
You don't need to have backend-goals run locally
- Run development command
yarn dev
Connect to local backend-goals
- Go to .env
- Set your
NUXT_PUBLIC_GOAL_API
value tohttp://localhost:8000/api
(or a url of the backend-goals you want to connect to)
It should look something like this -
NUXT_PUBLIC_GOAL_API='http://localhost:8000/api'
- Restart the server
- Generate the static content
yarn run generate
- The output is generated in
.output
directory