| migrate | ||
| schema | ||
| src | ||
| static | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| eslint.config.js | ||
| LICENSE.md | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| svelte.config.js | ||
| vite.config.js | ||
MHS Membership Remix
This is a rewrite of the original MHS Membership database application that was written using node and mongo. It was decided to rewrite for ease of revision going forward. This application is a Single Page Application (SPA) using Svelte (with Sveltekit) for the client application and pocketbase to store all of the data, which means everything ends up in an easily backed up SQLite database on the server.
Developing on this codebase.
You will need a local version of pocketbase with the latest schema (which may be imported from the schema/pb_schema.json file).
Once you have those, clone this repo, then run these commands to start a dev server:
npm install
npm run dev -- --open # You can omit the '-- --open' if you don't want to open a browser window.
Building
To build for production, you can run the following command:
npm run build
You can preview the production build with npm run preview.
Deploying
This SPA app is automatically deployed when a new change is pushed to the main branch.
If there are any updates to the schema, please export from your pocketbase and change the schema/pb_schema.json file to match. Then push the lastest code changes, and while that is updated, import the change to the deployed pocketbase. You will need to be an admin on the production pocketbase to perform that task.