Getting Started

SaaScape Setup

  1. Create a .env file in the root of the server directory by utilising the examples provided by the env.example file located in the same directory.

  2. Now you will need to install all npm packages you can do so by running the below commands from the root directory

    1. npm i

    2. cd ./client && npm i

    3. cd ./server && npm i

  3. You can then start SaaScape's dev build (using Vite) by running the following from the root of the client directory.

    1. npm run dev

  4. Now you must start the background and primary servers by running the below commands from the root of the server directory.

    1. npm run startd

    2. npm run startd-bg

Now SaaScape should be accessible on the default Vite port of 5173 with all api requests proxied to the server by default on port 4000.

Building SaaScape

You will need to build SaaScape on both the client and the server directories, it is important that we first build the client.

  1. In the root of the client directory run npm run build

  2. In the root of the server directory run npm run build

Database Setup

Now that we have setup SaaScape and ran our first build commands, we can now execute the dbSetup.js script using the instructions below from the root directory.

  1. cd ./server

  2. node dist/server/scripts/SETUP/dbSetup.js

Your database should now be setup and you can login to SaaScape via http://localhost:5173 using the below default credentials

email: saascape@example.com

password: admin

Last updated