Once you've cloned the project, be sure to install dependencies with npm install
(or pnpm install
or yarn
) NODEJS MUST BE INSTALLED ON YOUR COMPUTER,
we will be using local instance of pocketbase in the meantime, so go and download a version from here once downloaded, open the folder in your terminal (cmd/ powershell, vs code terminal etc then run the below)
http://127.0.0.1:8090/_/
- be sure to create a .env file in your repo folder and add the above url as an environment variable
VITE_PB_URL="http://127.0.0.1:8090"
NOTE: in the "\src\lib\types" you'll find the "pocketbaseschema.json" where you can import the collections into your local instance.
To start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
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.
This sveltekit app will be built to run using nixpacks(so docker), An important think to note is that the project will be using SSR mode and this means most of our business logic will live on the server.
below are a list of external tools/libraries the project above uses: