Skip to main content
Version: 2.0.1

πŸš€ Run a SPACE Instance

This guide will walk you through the steps to set up and run your own instance of SPACE. You can choose to run it using Docker for a quick setup or set it up for development purposes.

info

You can find the SPACE repository on GitHub: SPACE GitHub Repository

0. Prerequisites​

1. Clone the repository & run the application​

git clone https://github.com/Alex-GF/space.git
cd space
docker-compose up -d

This will launch MongoDB, Redis, the backend API, the frontend client, and Nginx as a reverse proxy.

2. Log into SPACE​

Then point your browser to http://localhost:5403, you should see this page:

Login View

Then log using:

  • Username: admin
  • Password: space4all

and you will be redirected to this page:

Dashboard View

Instance Configuration​

In many cases, you may want to configure your SPACE instance to meet your specific needs while protecting your business secrets.

To do so, you can modify the environments of both the server and client services within the docker-compose.yml file that is located in the root directory of the repository.

The full documentation for each environment can be located in the configuration section.

warning

For real-world applications integrating SPACE, it's very important to change both the JWT_SECRET and JWT_SALT environment variables of the serverservice. This is because all pricing tokens generated by SPACE are signed using these values, and if they are not changed, anyone with access to the source code can generate valid tokens for any user, which could lead to unauthorized access to your services.