- 
                Notifications
    You must be signed in to change notification settings 
- Fork 628
Building from source
        Rishabh Poddar edited this page Sep 25, 2020 
        ·
        13 revisions
      
    Building from source can allow you to customise SuperTokens as per your needs. This is recommended only for advanced users who are experts in authentication and security.
Please follow the CONTRIBUTING.md file for instructions on how to setup a development environment, make changes to the code and run tests.
- Make sure you are in the supertokens-rootfolder, and havesupertokens-core,supertokens-plugin-interfaceand a SuperTokens plugin repo in it.
- Run ./startTestingEnv --wait
- Open a new terminal in supertokens-rootand runls. Make sure you seeinstall,corefolder,pluginfolder and theplugin-interfacefolder.
- To install SuperTokens on your machine, run java -classpath "./cli/*" io.supertokens.cli.Main true $@(you may need to usesudo, but first try without it)
- You can kill the process started in step 2. This should also remove the files / folders mentioned in step 3.
- Check that SuperTokens is installed by running supertokens
- To uninstall SuperTokens, run supertokens uninstall
Due to the code architecture, one docker image only works with one database. For example, you can build a docker image that has SuperTokens and works with a MySQL database, or one that only works with MongoDB. In fact, we distribute a docker image for each supported database.
To build your own: 1)