Getting Started
SaaScape Setup
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.
Now you will need to install all npm packages you can do so by running the below commands from the root directory
npm icd ./client && npm icd ./server && npm i
You can then start SaaScape's dev build (using Vite) by running the following from the root of the client directory.
npm run dev
Now you must start the background and primary servers by running the below commands from the root of the server directory.
npm run startdnpm 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.
In the root of the client directory run
npm run buildIn 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.
cd ./servernode 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