buerokratt / DataMapper

Re-formatting data structures on the level of configuration files
MIT License
0 stars 12 forks source link

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