Testing handlebars and javascript functionality.
To run the application using docker run:
docker-compose up -d
Handlebars files go to views
directory.
Example on how to access handlebars in browser:
http://localhost:3000/hbs/my/restful/url/myFile
Javascript files go to js
directory.
Example on how to access javascript files in browser:
http://localhost:3000/js/my/restful/url/myScript
Note! URL must not end with .js
extension.
To develop the DataMapper, it's recommended to have nvm installed, which will ensure you have the correct node and npm versions.
# Install the required node version
nvm install
# Switch to the required node version
nvm use
# Install node dependencies
npm install
# Run the API
npm start