NodeWorldOfText: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
m (Update NWOT status)
(Updated and rewrote article.)
Line 1: Line 1:
[https://github.com/system2k/nodeworldoftext NodeWorldOfText] is the source code of [[OWOT]], which anyone can edit. This allows other users to host their own instance of Our World of Text called an '''NWOT.'''
[https://github.com/system2k/nodeworldoftext NodeWorldOfText] is the open source version of [[OWOT]], which anyone can view, download, and contribute to by opening issues and pull requests. It allows users to host their own instance of Our World of Text called an '''NWOT'''.
== Tutorial ==
The easiest way to make an NWOT which runs 24/7 is via importing [[KKosty4ka]]'s fork of the source code.
To do so, you must:


# Make a [https://replit.com/ replit] account.
== Hosting an NWOT ==
# Follow the instructions on [https://github.com/KKosty4ka/NodeWorldOfText/tree/for-repl-it the for replit branch of KKosty4ka's fork]<br>'''IMPORTANT:''' Do NOT fork KKosty4ka's replit project, as it is outdated. Instead use the [https://github.com/KKosty4ka/NodeWorldOfText/tree/for-repl-it instructions]
{{Notice|1=This section is based on the [https://github.com/system2k/NodeWorldOfText/blob/master/README.md README.md file] of NodeWorldOfText, accessed in December 2024.}}
 
=== Software requirements ===
* Node.js (>18.x.x) ([https://nodejs.org/ https://nodejs.org/])
* Git ([https://git-scm.com/ https://git-scm.com/])
** Not strictly necessary, but it's convenient for quickly downloading and updating your local repository.
 
=== Quickstart ===
* Clone the OWOT repository
*: <syntaxhighlight lang="bash" inline>git clone https://github.com/system2k/nodeworldoftext.git nwot</syntaxhighlight>
* Navigate to the directory
*: <syntaxhighlight lang="bash" inline>cd nwot</syntaxhighlight>
* Install the dependencies
*: <syntaxhighlight lang="bash" inline>npm install</syntaxhighlight>
* Run the server
*: <syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight>
* Running the server for the first time, you'll be asked to configure the settings.
*: <syntaxhighlight>Created the settings file at [../nwotdata/settings.json]. You must configure the settings file and then start the server back up again.
Full path of settings: [path to parent directory]/nwotdata/settings.json</syntaxhighlight>
* After configuring the settings, run the command again. Note that this will create an <code>nwotdata</code> directory on the same level as your repository.
*: <syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight>
* You will then be prompted to create a superuser account with this message:
*: <syntaxhighlight>You've just installed the server,
which means you don't have any superusers defined.
Would you like to create one now? (yes/no):</syntaxhighlight>
* After everything has been set up, your server will be live at this address:
*: <code>http://localhost:8080</code>
 
=== Common issues ===
* If you're encountering issues with <code>nwot_error_logs.zip</code>, please delete the zip file and try again.
* If you're receiving node-gyp errors while installing the modules via NPM, please ensure you've got some compiling tools installed on your system. If you have any further questions, feel free to ask on the [[Discord]].
* If you're receiving an error saying <code>Cannot find module</code>, make sure you've installed the modules by running <code>npm install</code>.
 
== List of active NWOTs ==
* [https://vnc.l5.ca/ Hungarian NWOT]
 
== Hosting an NWOT using Replit ==
It used to be possible to host NWOT using {{wp|Replit|Replit's}} free [https://docs.replit.com/additional-resources/hosting-web-pages web hosting service]. However, Replit's [https://blog.replit.com/hosting-changes hosting changes] effectively discontinued all NWOTs hosted on their platform.
 
=== List of NWOTs hosted using Replit ===
Below is a list of now-defunct NWOTs that were hosted using Replit.
 
* [https://nwot.dawgdawgdawg.repl.co dawgdawgdawg's NWOT]
* [https://suswot.someperson16.repl.co Sussybaka6969's NWOT ]
* [https://suswot2.someperson16.repl.co Sussybaka6969's second NWOT]
* [https://ntwot.notthatguyowot.repl.co NotThatGuy's NWOT]
* [https://caiozowot.caiozthings.repl.co Caioz's NWOT]
* [https://myworldoftext.awesomepika20.repl.co Tap20's NWOT]
* [https://nwot.kkosty4ka.repl.co/ KKosty4ka's NWOT]
* [https://nodeworldoftext.testaagml69.repl.co/ some random Guest account's NWOT]
* [https://nwot.testaagml69.repl.co some random Guest account's Second NWOT]


== Known NWOT's ==
{| class="wikitable"
|+Legend
!Symbol
!Meaning
|-
|✅
|Online
|-
|❌
|Offline
|}
* [https://nwot.dawgdawgdawg.repl.co dawgdawgdawg's NWOT] ❌
* [https://suswot.someperson16.repl.co Sussybaka6969's NWOT ] ❌
* [https://suswot2.someperson16.repl.co Sussybaka6969's second NWOT] ❌ (this one has been down since 1/1/2024, replit stinky poopoo haha)
* [https://ntwot.notthatguyowot.repl.co NotThatGuy's NWOT] ❌
* [https://vnc.l5.ca/ Hungarian NWOT] ✅ (First NWOT to not be hosted on a shitty device)
* [https://caiozowot.caiozthings.repl.co Caioz's NWOT] ❌
* [https://myworldoftext.awesomepika20.repl.co Tap20's NWOT] ❌
* [https://nwot.kkosty4ka.repl.co/ KKosty4ka's NWOT] ❌
* [https://nodeworldoftext.testaagml69.repl.co/ some random Guest account's NWOT] ❌
* [https://nwot.testaagml69.repl.co some random Guest account's Second NWOT] ❌
[[Category:Articles nominated by Guest-1052]]
[[Category:Articles nominated by Guest-1052]]

Revision as of 16:37, 3 December 2024

NodeWorldOfText is the open source version of OWOT, which anyone can view, download, and contribute to by opening issues and pull requests. It allows users to host their own instance of Our World of Text called an NWOT.

Hosting an NWOT

Software requirements

Quickstart

  • Clone the OWOT repository
    git clone https://github.com/system2k/nodeworldoftext.git nwot
  • Navigate to the directory
    cd nwot
  • Install the dependencies
    npm install
  • Run the server
    node main.js
  • Running the server for the first time, you'll be asked to configure the settings.
    Created the settings file at [../nwotdata/settings.json]. You must configure the settings file and then start the server back up again.
    Full path of settings: [path to parent directory]/nwotdata/settings.json
  • After configuring the settings, run the command again. Note that this will create an nwotdata directory on the same level as your repository.
    node main.js
  • You will then be prompted to create a superuser account with this message:
    You've just installed the server,
    which means you don't have any superusers defined.
    Would you like to create one now? (yes/no):
  • After everything has been set up, your server will be live at this address:
    http://localhost:8080

Common issues

  • If you're encountering issues with nwot_error_logs.zip, please delete the zip file and try again.
  • If you're receiving node-gyp errors while installing the modules via NPM, please ensure you've got some compiling tools installed on your system. If you have any further questions, feel free to ask on the Discord.
  • If you're receiving an error saying Cannot find module, make sure you've installed the modules by running npm install.

List of active NWOTs

Hosting an NWOT using Replit

It used to be possible to host NWOT using Replit's free web hosting service. However, Replit's hosting changes effectively discontinued all NWOTs hosted on their platform.

List of NWOTs hosted using Replit

Below is a list of now-defunct NWOTs that were hosted using Replit.