A simple MEAN stack skeleton written in Typescript.
- MongoDB
- Express
- Angular 2
- Node.js
- Websockets
- Mongoose
- Node
- MongoDB
- Typescript
Note: All commands entered need to be performed from within this directory.
-
Ensure you have a clean directory to dedicate as to a database (e.g.
C:\database
or~/database/
). -
From this repository's directory, run the following command to launch the MongoDB process.
<MONGO_INSTALL_DIRECTORY>/bin/mongod --dbpath <PATH_TO_DB_DIRECTORY>
-
From this directory, install the app's node dependencies, tsd, and typings with the following commands:
npm install npm install -g tsd tsd install
-
Before compiling the app you may have to change permissions (default is 744 after tsd install) to the typings directory.
chmod -R 774 typings
-
Compile the app with the following command:
tsc cd public tsc
-
Launch the Node process to serve the app using the following command from the root folder:
node server.js
-
Open your favorite browser and navigating to
http://localhost:3000/
to access the app.