forked from microsoft/TypeScriptSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
41 lines (24 loc) · 1.15 KB
/
README.txt
File metadata and controls
41 lines (24 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
===== TypeScript Sample: Image Board =====
=== Overview ===
This sample implements a complete Node.js application.
Notable features:
- Typed usage of express for server side MVC
- Typed usage of mongodb for server side database
- Typed usage of Node.js
- Use of TypeScript module syntax
- Visual Studio project file for working with the project
=== Running ===
Note: Perform steps 3 - 6 with your working directory set to the folder containing this README:
1. Install MongoDB if necessary (see http://docs.mongodb.org/manual/installation/ )
2. Run the following command to launch the MongoDB process:
<mongoinstalldir>\bin\mongod
3. Restore the sample app data to MongoDB in another command prompt with the following command:
<mongoinstalldir>\bin\mongorestore dump
4. Install the app's node dependencies with the following command:
npm install
5. Compile the app with the following command:
tsc --sourcemap --module commonjs app.ts
6. Launch the Node process to serve the app using the following command:
node app.js
7. Open your favorite browser and going to the following URL to access the app:
http://localhost:3000/