A forum engine built on top of Angular and Meteor.
We'd like to introduce this project to you in a few sentences.
This angular-meteor
based forum runs a webpage where multiple users can interact in multiple sub-forums via the creation of threads and posts in said threads.
Similar to what you'd see on Reddit.
Since we had to create a forum from scratch as a school project this is what we've come up with.
- Make sure you have meteor installed on your system. (How to install meteor)
Meteor comes packed with an integrated version ofnpm
that you can use whith$ meteor npm
. - Make sure you install the dependencies with
$ npm install
. - Run the project with
$ meteor
. - Have fun! 😀
This project comes with predefined NPM scripts, defined in package.json
:
$ npm run start
- Run the Meteor application.$ npm run start:prod
- Run the Meteor application in production mode.$ npm run build
- Creates a Meteor build version under ./build/ directory.$ npm run clear
- Resets Meteor's cache and clears the MongoDB collections.$ npm run meteor:update
- Updates Meteor's version and it's dependencies.$ npm run test
- Executes Meteor in test mode with Mocha.$ npm run test:ci
- Executes Meteor in test mode with Mocha for CI (run once).
This projects contains the basics that are required for a Angular-Meteor application.
This package contains:
- TypeScript support (with @types) and Angular 2 compilers for Meteor
- Angular-Meteor
- Angular (core, common, compiler, platform, router, forms)
- SASS, LESS, CSS support (Also support styles encapsulation for Angular 2)
- Testing framework with Mocha and Chai
- Meteor-RxJS support and usage
The conceptional design can be found here. All future components should follow the design language specified there.
By default there are multiple users and forums:
Username | Password | Role |
---|---|---|
user@user.de | sh7up#KT! | User (default role) |
admin@admin.de | sh7up#KT! | Admin |
mod@mod.de | sh7up#KT! | Moderator |
Name | Description |
---|---|
General | Introduction for new users and general rules. |
Help | Contains tutorials on usage of the forums. |
The folder structure is a mix between Angular 2 recommendation and Meteor 1.3 recommendation.
The client
folder contains single TypeScript (.ts
) file which is the main file (/client/main.ts
), and bootstrap's the Angular application.
The main component uses HTML template and SASS file.
The main.html
file is the main HTML which loads the application by using the main component selector (<angular-app>
).
All the other client files are under client/imports
and organized by the context of the components.
The server
folder contain single TypeScript (.ts
) file which is the main file (/server/main.ts
), and creates the main server instance, and the starts it.
All other server files should be located under /server/imports
.
The imports
folder contains the common files for both server and client. Example for common files in our app, is the MongoDB collection we create - it's located under /imports/collections/forums.ts
and it can be imported from both client and server code.
The public
folder contains the files, that are fleely accessible over HTTP. This f.e. contains the en.json
language file at public\assets\i18n\en.json
.
The testing environment in this project based on Meteor recommendation, and uses Mocha as testing framework along with Chai for assertion.