Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 881 Bytes

README.md

File metadata and controls

52 lines (33 loc) · 881 Bytes

DataMapper

Testing handlebars and javascript functionality.

Docker

To run the application using docker run:

docker-compose up -d

Handlebars

Handlebars files go to views directory.

Example on how to access handlebars in browser:

http://localhost:3000/hbs/my/restful/url/myFile

Javascript

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.

Local Development

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