NewDevathonWebsite Svelte Themes

Newdevathonwebsite

The source for the new Devathon Website, written in JavaScript/TypeScript

Devathon Website

Notes

  • While NPM can be used, YarnPkg is preferred for its speed and version locking.
  • Run yarn inside of client and server before running or building.

Setting up

  • Install MySQL, Redis, and a Node.js version that supports ES2015.

Client

The client code is written in Svelte, which is compiled before it's downloaded.

Scripts

Build for production:

yarn run build # build the client code and minify
yarn run server # build the client code for the server to render

Watch for development:

yarn run dev

Server

The server code is written in TypeScript, using the Express framework for routing. It pre-renders each webpage so that Svelte can start faster.

Setup

In order to run the server, you must copy server/config/config.default.ts to config.ts. Modify the defaults to match your setup.

Scripts

Run production:

yarn run build # run this every time you pull
yarn run run

Run development:

yarn run dev

Then connect to localhost:3000

Top categories

Loading Svelte Themes