Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

The website for the DDD Perth conference.

License

Notifications You must be signed in to change notification settings

dooman87/dddperth-website

 
 

Repository files navigation

Build status

DDD Perth Website

The DDD Perth website is deployed to https://dddperth.com and is built using Next.js.

Getting started

  • Checkout repository on your machine - ensure you have Node.js installed
  • Run npm install in the repository root (to restore npm packages)
  • Run npm run dev to start a local dev environment that watches for changes and supports Hot Module Replacement / Hot Reloading
  • Use Visual Studio Code as the preferred dev environment - breakpoint debugging should work and you should be able to run the "Start Dev Webserver" task to get it to run the dev environment
  • Note: package.json has some URLs defined in the dev task that reference the backend API

Building the code for prod release

  • Checkout code
  • Run npm
  • Run npm run build
  • Grab the .next directory and deploy to the destination
  • Run npm in the deploy folder and deploy all files from there alongside the .next directory (the web.config file is targeted towards Azure Web Apps)

Code organisation

  • / - Usual array of .json and other config files for a JavaScript / TypeScript project
    • /.vscode - VS Code config files including tasks, launch/debugging settings and extension recommendations
    • /components - Reusable UI components used within pages
      • /components/global - UI components that make up the global layout of the site
      • /components/utils - Utility functions
    • /config - Configuration of the conference-specific data
    • /deploy - Files used to deploy the app to Azure Web Apps
    • /layouts - Page layouts
    • /pages - The pages themselves, these turn into URLs as per Next.js convention
    • /static - Static assets

Re-purposing for another conference

To re-purpose for another conference:

  1. Update the files in the config directory
  2. The theme of the site is handled in theme.ts and uses an 8px margin system
  3. Components are styled using Emotion js styled components. Update styles within the component
  4. Update the images in the public directory and sub directories
  5. Update pages/about.tsx, pages/sponsorship.tsx, pages/cfp.tsx and pages/agenda/*.tsx with content specific to your conference

If you want to make tweaks to the pages then inspect the files in the pages directory and modify from there.

CI / CD

We use Azure DevOps for CI / CD. This is controlled via .devops/azure-pipelines.yml.

Tests

Run tests

  • Use the command npm test

Watch tests

  • Run the command npm run test:watch

VScode debug

  • In VSCode run Debug Jest Tests to run all tests in debug
  • Alternatively run Debug Jest Current File to debug the current file

Node debug

  • Run npm run test:debug and attach to the node inspector with your preferred method

Contributing

So you’re thinking about contributing to the project? You are awesome! It’s massively appreciated. Before getting started, please take the time to review the contribution guidelines before sending that epic pull request / bug report.

About

The website for the DDD Perth conference.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.4%
  • Other 0.6%