A template repository to set up a fullstack web environment
admin/ website/cypress/render.yamlOnce you cloned your repository on your local machine, you need to set up some environment variables
adminCreate a file in the admin folder named .env and fill it with the same key/value pairs as in the .env.example file. You can find information about mandatory environment variables in the documentation from Strapi about server configuration and admin panel configuration.
If you need to make authenticated requests from the website's server to the Strapi API, fill up the
STRAPI_WEBSITE_TOKENwith a random 128-bytes string
websiteCreate a file in the website folder named .env.local and fill it with same key/value pairs as in the .env file.
If you need to make authenticated requests from the website's server to the Strapi API, fill up the
STRAPI_WEBSITE_TOKENwith the same 128-bytes string from theadminstep
Run npm install in both admin and website folders
Run npm run build in the project root folder
Run npm run dev in the project root folder
Run npm test in the project root folder
Commit your changes and push them to the main branch of your repository. Render will automatically detect them and create new deployments for both services.
admin and websitemain branchRender will try to deploy a copy of your production environment running the Pull Request code changes.
This template comes with a Github workflow that runs the Cypress E2E test suite against a Preview Environment from Render on any change to a matching Pull Request.
You can follow the steps in this repository to set up your own Sorry-Cypress environment (an open-source alternative to the costly Cypress Studio).
Once all instances are up and running, copy the director service external URL in Render and paste it in the e2e workflow next to the CYPRESS_API_URL property.
Your next tests will be reported to your Sorry-Cypress dashboard.