PetVar === Pocketbase Express Typescript Vite Axios React
PetVar is the fastest way to spin up a Full Stack application (React + Node + PocketBase). Evolution and based off of the Penjar stack.
- Prequisites
- Installation Steps - Local
- Running - Local
- Node.js v20.17.0 or greater - https://nodejs.org/en
- NPM v10.8.2
- Go to https://pocketbase.io/docs/ and download the latest version of PocketBase for your OS
- These instructions were written using PocketBase v0.22.20
- Unzip the zip file downloaded in the previous step
- You should see a
pocketbase
binary in the unzipped folder
- You should see a
- Navigate to the database_and_storage directory
- Place the
pocketbase
binary into the database_and_storage directory - Run the
./pocketbase serve
command- Note: Running this command will also setup your initial collections and data
- Navigate to the Admin UI and setup your admin user
- The admin UI link will display in your terminal, after running the above serve command
- Navigate to the
users
collection and create a new user- This user will be used by your backend server, to connect to pocketbase
- In your backend directory, create a
.env
with the following structure:
POCKETBASE_USER=UsersUsernameFromThePreviousStepHere
POCKERBASER_PASSWORD=UsersPasswordFromThePreviousStepHere
- Terminate running Pocketbase (the command that was run on step 5)
- Your install is complete. Follow the 'Running - Local' steps below!
- Complete the "Installation Steps - Local" from above
- Open terminal of choice in the run_locally directory
- Install your dependencies with npm install
- Run your application with
npm run start
start:windows
,start:linux
, andstart:mac
are also available- You can update the
start
command in this package.json to match your systems OS
- Ready to Code!
- To view your frontend website, on your browser go to:
http://localhost:5173
- To call your backend server, use your API client on this URL:
http://localhost:3031
- Example: GET
http://localhost:3031/health
- Example: GET
- To view your database and storage, use these URLS:
- Admin UI:
http://127.0.0.1:8090/_/
- REST API:
http://localhost:8090/api/
- Admin UI:
- To view your frontend website, on your browser go to:
Work in Progress
Work in Progress