Hi everyone. This project is for learning and contains a connection between angular 2, node, express and mongo. The goal is to show a chat-room with your self, where every message is saved in mongo and then retrieved from it in order to render them in the view.
- Clone (or download) this repo.
- Download Mongo. Go to Mongo's homepage and download the package. Once done that,
move the package to a folder where you can access.
- Add the route of the folder to your path. Example:
- if you still can't run mongo, visit Mongo's manual in section Run MongoDB
- Start mongo by typing mongod in your console.
- In addition, you can start the mongo client like this: mongo (this allows you to access all your databases and perform queries).
- Add the route of the folder to your path. Example:
- Go to Node's homepage and download the CURRENT version of Node.
- Once you've download node, go to the root folder of this project. Then hit: npm install
- If you have troubles with webstartserver and del-cli packages, try to install these 2 globally (-g option)
- Go to the root folder of this project, then:
- Run npm run build to run the development build script => Keep this process running! It recompiles your files upon changes.
- Run npm start in a new command line/ terminal window => Keep this process running as well, it's your NodeJS server.
- Open a browser and go to: http://localhost:3000/messages