This is a little demo project working with Sveltekit and pocketbase! I am sure i'll add more here once more is done :)
First, create an environment variable from .env.example
and populate the following variables. Be sure to grab the release for your desired version!
run npm install
to install packages necessary for frontend.
An automated script was made to automatically install and put the files correctly! Run the following:
npm run pocketbase:install:linux
An automated script was made to automatically install and put the files correctly! Run the following:
npm run pocketbase:install:mac
The only difference with above is I had to add chmod +x for my system, theres a chance this isnt necessary.
If you are not on a linux or a mac, the manual install is still just as simple. Continue to install your pocketbase instance, and extract necessary files in /backend
.
Once installed, you can run npm run dev
to run both the backend and frontend simultaneously!
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.