Commit ed9547de7e8c03119e6989ef2bd6a6681c81fc68

Authored by Ali B
1 parent 937dd683

Started working on Rest server using Node.js

Mockup/Thumbs.db
No preview for this file type
restApi/.idea/modules.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="ProjectModuleManager">
  4 + <modules>
  5 + <module fileurl="file://$PROJECT_DIR$/.idea/restApi.iml" filepath="$PROJECT_DIR$/.idea/restApi.iml" />
  6 + </modules>
  7 + </component>
  8 +</project>
0 9 \ No newline at end of file
... ...
restApi/.idea/restApi.iml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<module type="WEB_MODULE" version="4">
  3 + <component name="NewModuleRootManager">
  4 + <content url="file://$MODULE_DIR$" />
  5 + <orderEntry type="inheritedJdk" />
  6 + <orderEntry type="sourceFolder" forTests="false" />
  7 + </component>
  8 +</module>
0 9 \ No newline at end of file
... ...
restApi/.idea/workspace.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="ChangeListManager">
  4 + <list default="true" id="8a337026-05ab-47b0-872d-ab1e8037e9a0" name="Default" comment="" />
  5 + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
  6 + <option name="TRACKING_ENABLED" value="true" />
  7 + <option name="SHOW_DIALOG" value="false" />
  8 + <option name="HIGHLIGHT_CONFLICTS" value="true" />
  9 + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
  10 + <option name="LAST_RESOLUTION" value="IGNORE" />
  11 + </component>
  12 + <component name="FileEditorManager">
  13 + <leaf>
  14 + <file leaf-file-name="package.json" pinned="false" current-in-tab="true">
  15 + <entry file="file://$PROJECT_DIR$/package.json">
  16 + <provider selected="true" editor-type-id="text-editor">
  17 + <state relative-caret-position="0">
  18 + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
  19 + <folding />
  20 + </state>
  21 + </provider>
  22 + </entry>
  23 + </file>
  24 + </leaf>
  25 + </component>
  26 + <component name="GradleLocalSettings">
  27 + <option name="modificationStamps">
  28 + <map>
  29 + <entry key="$PROJECT_DIR$/../New Folder" value="7397988581076" />
  30 + </map>
  31 + </option>
  32 + <option name="externalProjectsViewState">
  33 + <projects_view />
  34 + </option>
  35 + </component>
  36 + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
  37 + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER">
  38 + <package-json value="$PROJECT_DIR$/package.json" />
  39 + </component>
  40 + <component name="JsGulpfileManager">
  41 + <detection-done>true</detection-done>
  42 + <sorting>DEFINITION_ORDER</sorting>
  43 + </component>
  44 + <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  45 + <component name="ProjectFrameBounds" extendedState="7">
  46 + <option name="x" value="291" />
  47 + <option name="y" value="51" />
  48 + <option name="width" value="1534" />
  49 + <option name="height" value="862" />
  50 + </component>
  51 + <component name="ProjectView">
  52 + <navigator currentView="ProjectPane" proportions="" version="1">
  53 + <flattenPackages />
  54 + <showMembers />
  55 + <showModules />
  56 + <showLibraryContents />
  57 + <hideEmptyPackages />
  58 + <abbreviatePackageNames />
  59 + <autoscrollToSource />
  60 + <autoscrollFromSource />
  61 + <sortByType />
  62 + <manualOrder />
  63 + <foldersAlwaysOnTop value="true" />
  64 + </navigator>
  65 + <panes>
  66 + <pane id="ProjectPane">
  67 + <subPane>
  68 + <expand>
  69 + <path>
  70 + <item name="restApi" type="b2602c69:ProjectViewProjectNode" />
  71 + <item name="restApi" type="2a2b976b:PhpTreeStructureProvider$1" />
  72 + </path>
  73 + </expand>
  74 + <select />
  75 + </subPane>
  76 + </pane>
  77 + <pane id="Scope" />
  78 + <pane id="Scratches" />
  79 + </panes>
  80 + </component>
  81 + <component name="PropertiesComponent">
  82 + <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
  83 + <property name="WebServerToolWindowFactoryState" value="false" />
  84 + <property name="last_opened_file_path" value="$PROJECT_DIR$" />
  85 + </component>
  86 + <component name="RunDashboard">
  87 + <option name="ruleStates">
  88 + <list>
  89 + <RuleState>
  90 + <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
  91 + </RuleState>
  92 + <RuleState>
  93 + <option name="name" value="StatusDashboardGroupingRule" />
  94 + </RuleState>
  95 + </list>
  96 + </option>
  97 + </component>
  98 + <component name="RunManager">
  99 + <configuration default="true" type="Applet" factoryName="Applet">
  100 + <module />
  101 + <option name="WIDTH" value="400" />
  102 + <option name="HEIGHT" value="300" />
  103 + <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
  104 + <method />
  105 + </configuration>
  106 + <configuration default="true" type="Application" factoryName="Application">
  107 + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
  108 + <option name="MAIN_CLASS_NAME" />
  109 + <option name="VM_PARAMETERS" />
  110 + <option name="PROGRAM_PARAMETERS" />
  111 + <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
  112 + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
  113 + <option name="ALTERNATIVE_JRE_PATH" />
  114 + <option name="ENABLE_SWING_INSPECTOR" value="false" />
  115 + <option name="ENV_VARIABLES" />
  116 + <option name="PASS_PARENT_ENVS" value="true" />
  117 + <module name="" />
  118 + <envs />
  119 + <method />
  120 + </configuration>
  121 + <configuration default="true" type="JUnit" factoryName="JUnit">
  122 + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
  123 + <module name="" />
  124 + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
  125 + <option name="ALTERNATIVE_JRE_PATH" />
  126 + <option name="PACKAGE_NAME" />
  127 + <option name="MAIN_CLASS_NAME" />
  128 + <option name="METHOD_NAME" />
  129 + <option name="TEST_OBJECT" value="class" />
  130 + <option name="VM_PARAMETERS" value="-ea" />
  131 + <option name="PARAMETERS" />
  132 + <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
  133 + <option name="ENV_VARIABLES" />
  134 + <option name="PASS_PARENT_ENVS" value="true" />
  135 + <option name="TEST_SEARCH_SCOPE">
  136 + <value defaultName="singleModule" />
  137 + </option>
  138 + <envs />
  139 + <patterns />
  140 + <method />
  141 + </configuration>
  142 + <configuration default="true" type="TestNG" factoryName="TestNG">
  143 + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
  144 + <module name="" />
  145 + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
  146 + <option name="ALTERNATIVE_JRE_PATH" />
  147 + <option name="SUITE_NAME" />
  148 + <option name="PACKAGE_NAME" />
  149 + <option name="MAIN_CLASS_NAME" />
  150 + <option name="METHOD_NAME" />
  151 + <option name="GROUP_NAME" />
  152 + <option name="TEST_OBJECT" value="CLASS" />
  153 + <option name="VM_PARAMETERS" value="-ea" />
  154 + <option name="PARAMETERS" />
  155 + <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
  156 + <option name="OUTPUT_DIRECTORY" />
  157 + <option name="ANNOTATION_TYPE" />
  158 + <option name="ENV_VARIABLES" />
  159 + <option name="PASS_PARENT_ENVS" value="true" />
  160 + <option name="TEST_SEARCH_SCOPE">
  161 + <value defaultName="singleModule" />
  162 + </option>
  163 + <option name="USE_DEFAULT_REPORTERS" value="false" />
  164 + <option name="PROPERTIES_FILE" />
  165 + <envs />
  166 + <properties />
  167 + <listeners />
  168 + <method />
  169 + </configuration>
  170 + <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
  171 + <module name="" />
  172 + <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
  173 + <option name="PROGRAM_PARAMETERS" />
  174 + <predefined_log_file id="idea.log" enabled="true" />
  175 + <method />
  176 + </configuration>
  177 + </component>
  178 + <component name="ShelveChangesManager" show_recycled="false">
  179 + <option name="remove_strategy" value="false" />
  180 + </component>
  181 + <component name="SvnConfiguration">
  182 + <configuration />
  183 + </component>
  184 + <component name="TaskManager">
  185 + <task active="true" id="Default" summary="Default task">
  186 + <changelist id="8a337026-05ab-47b0-872d-ab1e8037e9a0" name="Default" comment="" />
  187 + <created>1538753503688</created>
  188 + <option name="number" value="Default" />
  189 + <option name="presentableId" value="Default" />
  190 + <updated>1538753503688</updated>
  191 + <workItem from="1538753505199" duration="609000" />
  192 + </task>
  193 + <servers />
  194 + </component>
  195 + <component name="TimeTrackingManager">
  196 + <option name="totallyTimeSpent" value="609000" />
  197 + </component>
  198 + <component name="ToolWindowManager">
  199 + <frame x="-8" y="-8" width="1936" height="1056" extended-state="7" />
  200 + <editor active="true" />
  201 + <layout>
  202 + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
  203 + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
  204 + <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
  205 + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
  206 + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
  207 + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
  208 + <window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
  209 + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
  210 + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
  211 + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
  212 + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
  213 + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
  214 + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
  215 + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
  216 + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
  217 + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
  218 + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
  219 + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
  220 + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
  221 + </layout>
  222 + </component>
  223 + <component name="TypeScriptGeneratedFilesManager">
  224 + <option name="version" value="1" />
  225 + </component>
  226 + <component name="VcsContentAnnotationSettings">
  227 + <option name="myLimit" value="2678400000" />
  228 + </component>
  229 + <component name="XDebuggerManager">
  230 + <breakpoint-manager />
  231 + <watches-manager />
  232 + </component>
  233 + <component name="editorHistoryManager">
  234 + <entry file="file://$PROJECT_DIR$/package.json">
  235 + <provider selected="true" editor-type-id="text-editor">
  236 + <state relative-caret-position="0">
  237 + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
  238 + <folding />
  239 + </state>
  240 + </provider>
  241 + </entry>
  242 + </component>
  243 +</project>
0 244 \ No newline at end of file
... ...
restApi/package.json 0 → 100644
  1 +{
  2 + "name": "risikoapi",
  3 + "version": "1.0.0",
  4 + "description": "RESTful API for Risikovurderinger",
  5 + "main": "index.js",
  6 + "scripts": {
  7 + "test": "echo \"Error: no test specified\" && exit 1"
  8 + },
  9 + "keywords": [
  10 + "RESTful"
  11 + ],
  12 + "author": "Ali, Kristin og Anna",
  13 + "license": "ISC"
  14 +}
... ...