Running SerpBear Locally

If you don't want to deploy SerpBear on a server and want to run it locally on your computer follow the instructions below.

Step 1:

Make sure git and nodejs are installed on your computer.

Step 2:

Clone the SerpBear repo by running:

git clone git@github.com:towfiqi/serpbear.git
cd serpbear

Step 3:

Create a .env.local file. and insert the following variables and change them as you like:

USER=admin
PASSWORD=999999
SECRET=4715aed3216f7b0a38e6b234a958362654e56d10fbc04700770d472af3dce43625jd
APIKEY=5saedXklbylhnatihe2pihp3pih4fdnakljwq9
SESSION_DURATION=24
NEXT_PUBLIC_APP_URL=http://localhost:3000

The details of the required environment variables can be found here.

Note: If you are trying to run the app on a Mac computer, instead of using USER variable, use USERNAME

Step4:

Create a data directory inside your serpbear directory.

Step 5:

Install the necessary packages and build the app by running the below command:

npm install
npm run build

Step 6:

Run the app by running this command:

npm run start:all

Updating the App

When there is a new release, you can simply run these commands to update the app:

git pull
npm install
npm run build
npm run start:all

Last updated