The main purpose of this repository is to show a design and develop real-time application using express.js, mongodb, mongoose.js, node.js, grunt.js and typescript features, use this application as a reference when you start a new project OR you want to improve code quality of your existing application. We will try to keep this as up-to-date as possible, but community contributions and recommendations for improvements are encouraged and will be most welcome.
- Modular based Project folder structure
- Modular based Routing
- Authentication using passport local Strategy
- Authorization using JWT token
- Configured babel to compile ES6 code
- Automation using grunt, nodemon
To build and run this app locally you will need a few things:
- Clone the repository
git clone https://github.com/balajihambeere/express-mongo-nodejs-typescript-realtime-app.git <project_name>
- Install typescript
npm install -g typescript
- Install dependencies
cd <project_name>
npm install
- Start your mongoDB server (you'll probably want another command prompt)
mongod
- Build and run the project
npm start
Finally, navigate to http://localhost:3000 and you should see the server started locally!