Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.48 KB

README.md

File metadata and controls

50 lines (29 loc) · 1.48 KB

Reed Kalisz

Public website and a CMS to manage it.

Both the public website and admin panel are statically generated. Powered by SvelteKit.
The admin panel is using a REST API that runs as a node server. Powered by Directus.


Develop 👨‍💻

Backend: /backend

Directus: /backend/directus

Directus turns an SQL database into a REST API.

npm run start (docs)

Heimdall: /backend/heimdall

Heimdall is a server that performs actions based on the information from the admin panel.

npm run dev

Frontend: /frontend

npm run dev (docs)


Deploy 🏃

Configure a tool like nginx. Make sure you run everything on HTTPS.
Serve SvelteKit on port 80.
Serve Directus on port 8055.
Serve Heimdall on port 999.

Backend: /backend

  1. Clone this repo to the server.
  2. Read the official docs on Directus deployment.
  3. Run Heimdall. (npm run start)

Consider running the backend with pm2.

Frontend: /frontend

  1. Clone this repo to the server.
  2. Build (npm run build) and run the node server.