Picture of Briar Ang
Adapt authoring install - node install
by Briar Ang - Friday, 7 September 2018, 11:55 PM
 

I'm trying to install the Adapt Authoring tool. I'm up to step 4. Run the install script on https://github.com/adaptlearning/adapt_authoring/wiki/Install-on-Server#4

When I run node install I get the error:

\ Starting server

(node:996) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlP| Starting server

Any ideas on how to solve this?

 

Full terminal log below:

 

iMac:adapt_authoring briar$ node install

 

This script will install the application. 

Would you like to continue?

> Continue? Y/n (Y) Y

 

We need to configure the tool before install. 

Tip: just press ENTER to accept the default value in brackets.

> Server port (5000) 

> Server name (localhost) 

> Database host (localhost) 

> Master database name (adapt-tenant-master) 

> Database server port (27017) 

> Database server user 

> Database server password 

> Database server authentication database (admin) 

> Data directory path (data) 

> Session secret (value used when saving session cookie data) (your-session-secret) 

> Git repository URL to be used for the authoring tool source code (https://github.com/adaptlearning/adapt_authoring.git) 

> Git repository URL to be used for the framework source code (https://github.com/adaptlearning/adapt_framework.git) 

> Specific git revision to be used for the framework. Accepts any valid revision type (e.g. branch/tag/commit) (tags/v2.2.5) 

> Are you using ffmpeg? y/N (N) Y

> Will you be using an SMTP server? (used for sending emails) y/N (N) N

Now we need to configure the master tenant. 

Tip: just press ENTER to accept the default value in brackets.

 

\ Starting server

(node:996) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlP| Starting server

iMac:adapt_authoring briar$ 

Picture of Sam Tsiu
Re: Adapt authoring install - node install
by Sam Tsiu - Monday, 10 September 2018, 3:26 AM
 

Hi Briar,

No worries about those DeprecationWarnings. Just follow the onscreen instructions to install the authoring tool.

Please make sure mongoDB is running when you install or run the authoring tool.

 

Cheers

Sam

Picture of Briar Ang
Re: Adapt authoring install - node install
by Briar Ang - Tuesday, 11 September 2018, 11:04 AM
 

Thank you so much for your help Sam! I almost gave up with the install process but I'm glad I didn't because I finally installed successfully tonight! :)

To run the Adapt Authoring tool after I restart my computer, will I need to go into the terminal again and do anything? If yes, can you please let me know what commands? Or from now on will I just be able to use http://localhost:5000/ in a browser to use it?

Picture of Sam Tsiu
Re: Adapt authoring install - node install
by Sam Tsiu - Tuesday, 11 September 2018, 11:56 AM
 

I'm glad that you didn't give up:-) 

You certainly do not have to install anything else. The installation part is done.

Next time when you restart your computer, to use the authoring tool, just open the terminal, making sure mongodb is running, then run `node server` from the Authoring tool project root directory, i.e. the directory where you cloned the project, when the app starts up the browser will open with the login page of the authoring tool.

Please let me know if you have further questions:-)

Cheers

Sam

Picture of Briar Ang
Re: Adapt authoring install - node install
by Briar Ang - Wednesday, 12 September 2018, 9:17 AM
 

Thanks again Sam - really appreciate your help! :)

Picture of paul diaper
Re: Adapt authoring install - node install
by paul diaper - Tuesday, 11 September 2018, 2:39 PM
 

Hi

I just got an installation working and created a .bat file with the commands in to start node server. If you are on a Windows PC you can get the .bat to run the commands automatically when a user logs in or when Windows starts.

Then you just have to type the URL in the browser (once the commands have been executed).

Picture of Matt Leathes
Re: Adapt authoring install - node install
by Matt Leathes - Tuesday, 11 September 2018, 3:16 PM
 
Then you just have to type the URL in the browser

You could also add start "" http://localhost:5000/ to the end of the .bat file to have the authoring tool launch automatically in your default browser.

(However, from the output Briar posted above it would seem she's running macOS)

Picture of paul diaper
Re: Adapt authoring install - node install
by paul diaper - Tuesday, 11 September 2018, 3:46 PM
 

clever clogs!

I'l try that as well.

Picture of paul diaper
Re: Adapt authoring install - node install
by paul diaper - Tuesday, 11 September 2018, 3:49 PM
 

I think Applescript should be able to do something similar for the Mac.

Last year I set up the command line version of Phonegap on a Mac and used Applescript to run the commands.

I'm sure something similar could be done for Adapt.

Picture of Matt Leathes
Re: Adapt authoring install - node install
by Matt Leathes - Tuesday, 11 September 2018, 4:24 PM
 

Applescript! Gosh, haven't touched that in years... never did trust 'natural language' things like that, they always seem to end up being quite painful to work with

Picture of Briar Ang
Re: Adapt authoring install - node install
by Briar Ang - Wednesday, 12 September 2018, 9:19 AM
 

You're right I am on macOS but thanks for the thought!