This is a messaging app created to learn about Angular and TypeScript. Some of the features include: user authentication, authorization, and pagination.
Prior to signing up users can view all messages.
New users can signup for Communiqué, and existing users can login.
Once logged in users can edit and delete their own posts, but not the post of other users.
An error message will occur if a user makes a mistakes, or uses Communiqué incorrectly.
- MongoDB
- Angular
- NodeJS
- Express
- Angular Material
- Mongoose
- mongoose-unique-validator
- bcrypt
- jsonwebtoken
- Multer
- Fork or clone the repo.
- Run
npm install
to install all dependencies. - Create a MongoDB sandbox.
- Add the login information to the backend/app.js file.
- Run
ng serve
to start the Angular server. - Run
npm run start:server
to start the express server.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Start the express server by running npm run start:server
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.