The source code for studio-lovelies.com.
nvm
- for Windows: Install
nvm-windows
1.1.9 or later - for other operating systems: Install
nvm
0.39.2 or later
- for Windows: Install
- SMTP account to send emails via the contact form (optional)
- SMTP host
- SMTP port
- SMTP username
- SMTP password
- Discord webhook to forward contact form submissions to a Discord channel (optional)
- absolute URL to the webhook
- Clone the repository.
- Duplicate
.env.sample
and rename it to.env
. - Replace the values in
.env
with your own (see Requirements). - Inside your local clone of this repository run
nvm install && nvm use && npm install
. - To run the tests run
npm run test
; these should pass wihout any errors. - To start the server locally run
npm run start
.
- Create a new branch.
- Build, test, commit and push your changes locally (see Setup).
- Create and submit a Pull Request from your branch to
main
and fill out the Pull Request template.- A second developer will review your changes. Ping any developer, if this doesn't happen within 24 hours.
- Address all feedback. Mark conversations as resolved after you pushed corresponding changes. Challenge feedback, if you disagree.
- In parallel, a GitHub Action tests, builds and deploys the website.
- If the GitHub Action fails, you will receive an email + notification on GitHub. Update your Pull Request until all checks pass.
- If the GitHub Action succeeeds, you can check the preview environment. Note: This might take up to 10 minutes.
- Verify
preview.studio-lovelies.com/version
returns the commit hash of last Pull Request commit. - Verify
preview.studio-lovelies.com
shows all your changes.
- Verify
- A second developer will review your changes. Ping any developer, if this doesn't happen within 24 hours.
Rebase and merge
the Pull Request.- Your changes will be deployed to the production environment. Note: This might take up to 10 minutes.
- Verify the last commit of the
main
branch is the last commit of your Pull Request. Note: The commit hash might be different, if someone else merged a Pull Request in the meantime. - Verify
studio-lovelies.com/version
returns the commit hash of lastmain
commit. - Verify
studio-lovelies.com
shows all your changes.
- Verify the last commit of the