Self hosting the members portal

You can customise your Nexudus portal in more detail by accessing the code used in the different pages. There are three ways you can do this.

Use this method when you need to host the members portal on your own infrastructure. For example:

  • You need to do a complete rewrite of all pages to apply radically different styles and layouts.

  • You want to use all or part of the portal features within your own marketing site or other platform features.

How is it built?

The Nexudus portal is build using ReactJS on top of NextJS. It uses MobX as state management. 

Downloading and running from source code

You can download the most recent version of the portal using GIT. You will need a version Node greater than 10.19.0 and Yarn.

git clone https://source.nexudus.com/nexudus-portals-nextjs.git

Once you have downloaded the code, you will need to edit the configuration file to make sure the code uses your Nexudus account. In the example below xyz is the subdomain of a Nexudus account. You can find yours in Settings > Website.

mceclip0.png

Replace the env/config.js file with the code below, replacing xyz with your own Nexudus account domain.

module.exports = {
apiRoot: 'https://xyz.spaces.nexudus.com',
platformRoot:'https://spaces.nexudus.com',
};

Next, install all dependencies running yarn. This can take some time.

yarn

Once yarn has finished installing all packages, you can run the project using:

yarn run dev

If you want to create a release version to be published in the .next folder, run:

yarn run build

 

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.