The application is split into two main directories client
and server
Keep all server side code in server/
server.js
- express server setup and configurationconfig.js
- environment variables for app configurationemail.js
- util for sending email via SendGridnotify.js
- util for sending notifications (via email)routes/
- express middlewareviews/
- ejs templates rendered by expressdb/
- mongoose models
static content is served from this directory client/
app/
- Angular code and templates
Follows this guide for structure
and try to follow to this Angular Style Guide
-
assets/
- static assets not related to Angular (css/images/js) -
dist/
- build directory for minified and concated angular .js files, plus bower components