Skip to content

A mean framework that aims(and fails) to be minimal. Angular 2 + material included.

License

Notifications You must be signed in to change notification settings

kodacs/minimean

Repository files navigation

Minimean

A mean framework that aims(and fails) to be minimal. Angular 2 + material included.

So, I decided to build a framework for my projects, as it would be useful in the process learning NodeJS. (and yeah, it is) Mostly because I like to know things, how they build up, so when it breaks I can fix it. (at least that worked out until now) If you looking into build your own, or just clone this feel free; but building your own is a huge opportunity to learn. As I said I'm learning NodeJS right now, so I won't use any fancy-pants syntax that would warp the mind of the other beginners. Also I'll use basic english.

What the fsck is this?

REST/CRUD API built with mongoose and express. Custom jsonwebtoken authentication, and password storing ispired by @vladotesanovic's angular2-express-starter. Also I have to admit I used an ng generator for the Angular2+Material2 scaffolding because I don't know much about how Angular2 works. For now, it's magic. Maybe in the next version I'll can cut down from Angular2's flustercuck dependency hell.

TESTing the API

#loginroute
curl -i -XPOST http://localhost:8080/api/auth -H "Content-Type:application/json" -d '{"name":"defaultuser","password":"reparetekmogyoro"}'
#test protected route
curl -i -XGET http://localhost:8080/api/user -H "Content-Type:application/json" -H "x-access-token: <token>"

Thanks and learning material

About

A mean framework that aims(and fails) to be minimal. Angular 2 + material included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published