Skip to content
Snippets Groups Projects
Commit e362b78c authored by Grace Copplestone (admin)'s avatar Grace Copplestone (admin)
Browse files

Update README.md

parent dd53d0fd
No related branches found
No related tags found
No related merge requests found
# Install and run mods # Install and run mods
You need to first install [node.js](https://docs.npmjs.com/getting-started/installing-node). Ensure that you update npm as directed in the link. You need to first install [node.js](https://docs.npmjs.com/getting-started/installing-node).
Install the [http-server](https://www.npmjs.com/package/http-server) npm package. Including '-g' sets the installs the package gloabally, allowing you to use it as a command line tool. Install the [http-server](https://www.npmjs.com/package/http-server) npm package. Including '-g' sets the installs the package gloabally, allowing you to use it as a command line tool.
<code>npm install http-server -g</code> <code>npm install http-server -g</code>
Clone the mods repository. Clone the mods repository:
Use the command line to navigate to the root of the mods repository. <code>git clone ssh://git@gitlab.cba.mit.edu:846/pub/mods.git</code>
Start up a server by typing: Use the command line to navigate to the root of the mods repository:
<code>cd mods</code>
Start up a server:
<code>http-server</code> <code>http-server</code>
Open a browser tab and go to <code>127.0.0.1:8080</code> which is the same as <code>http://localhost:8080</code> to view the server that you just started. Open a browser tab and go to <code>127.0.0.1:8080</code> which is the same as <code>http://localhost:8080</code> to view the server that you just started.
Depending on how to need to use mods you can start local servers located in 'mods/js', for example, if you start from the root of the mods repository: Depending on how to need to use mods you can start local servers located in <code>mods/js</code>, for example, if you start from the root of the mods repository:
<code>cd js</code> <code>cd js</code>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment