Jump to content

NodeWorldOfText: Difference between revisions

Dat Hack3r (talk | contribs)
Added some details I left out in my previous edit.
Dat Hack3r (talk | contribs)
m Quickstart: Switch to a numbered list.
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:


=== Quickstart ===
=== Quickstart ===
* Clone the OWOT repository
<ol>
*: <syntaxhighlight lang="bash" inline>git clone https://github.com/system2k/nodeworldoftext.git nwot</syntaxhighlight>
  <li>Clone the OWOT repository
* Navigate to the directory
    <ul><li><syntaxhighlight lang="bash" inline>git clone https://github.com/system2k/nodeworldoftext.git nwot</syntaxhighlight></li></ul>
*: <syntaxhighlight lang="bash" inline>cd nwot</syntaxhighlight>
  </li>
* Install the dependencies
  <li>Navigate to the directory
*: <syntaxhighlight lang="bash" inline>npm install</syntaxhighlight>
    <ul><li><syntaxhighlight lang="bash" inline>cd nwot</syntaxhighlight></li></ul>
* Run the server
  </li>
*: <syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight>
  <li>Install the dependencies
* Running the server for the first time, you'll be asked to configure the settings.  
    <ul><li><syntaxhighlight lang="bash" inline>npm install</syntaxhighlight></li></ul>
*: <syntaxhighlight>Created the settings file at [../nwotdata/settings.json]. You must configure the settings file and then start the server back up again.
  </li>
Full path of settings: [path to parent directory]/nwotdata/settings.json</syntaxhighlight>
  <li>Run the server
* 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.
    <ul><li><syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight></li></ul>
*: <syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight>
  </li>
* You will then be prompted to create a superuser account with this message:
  <li>Running the server for the first time, you'll be asked to configure the settings.
*: <syntaxhighlight>You've just installed the server,
    <ul><li><pre>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</pre></li></ul>
  </li>
  <li>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.
    <ul><li><syntaxhighlight lang="bash" inline>node main.js</syntaxhighlight></li></ul>
  </li>
  <li>You will then be prompted to create a superuser account by this message:
    <ul><li><pre>You've just installed the server,
which means you don't have any superusers defined.
which means you don't have any superusers defined.
Would you like to create one now? (yes/no):</syntaxhighlight>
Would you like to create one now? (yes/no):</pre></li></ul>
* After everything has been set up, your server will be live at this address:
  </li>
*: <code>http://localhost:8080</code>
  <li>After everything has been set up, your server will be live at this address:
    <ul><li><code>http://localhost:8080</code></li></ul>
  </li>
</ol>


=== Common issues ===
=== Common issues ===
Line 35: Line 45:
* 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>.
* 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 ==
== Currently active NWOTs ==
There are currently no active NWOTs. See below.
 
== Inactive or discontinued NWOTs ==
* [https://vnc.l5.ca/ Hungarian NWOT]
* [https://vnc.l5.ca/ Hungarian NWOT]


== Hosting an NWOT using Replit ==
== Hosting an NWOT on 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]. This could be accomplished by [https://docs.replit.com/replit-workspace/using-git-on-replit/running-github-repositories-replit importing] [[KKosty4ka]]'s fork of NodeWorldOfText to Replit and running the [https://github.com/KKosty4ka/NodeWorldOfText/tree/for-repl-it <code>for-repl-it</code> branch], which would host the NWOT at <code><nowiki>https://[repl name].[user name].repl.co</nowiki></code>. However, Replit's [https://blog.replit.com/hosting-changes hosting changes] effectively discontinued all NWOTs hosted on their platform.
It used to be possible to host NWOT on {{wp|Replit|Replit's}} free [https://docs.replit.com/additional-resources/hosting-web-pages web hosting service]. This could be accomplished by [https://docs.replit.com/replit-workspace/using-git-on-replit/running-github-repositories-replit importing] [[KKosty4ka]]'s NodeWorldOfText [https://github.com/KKosty4ka/NodeWorldOfText/ fork] to Replit and running the [https://github.com/KKosty4ka/NodeWorldOfText/tree/for-repl-it <code>for-repl-it</code> branch], which would host the NWOT at <code><nowiki>https://[repl name].[user name].repl.co</nowiki></code>. 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 ===
=== Former NWOTs Hosted on Replit ===
Below is a list of now-defunct NWOTs that were hosted using Replit.
Below is a list of now-defunct NWOTs that were hosted using Replit.