Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

codeep/Angular4-Node-Mongo-Starter

Repository files navigation

The project structure gives you a great opportunity to scale your application. Adding and maintaining API endpoints is easy and very fast. The structure is ideal for development process.

For production mode, only one server is required which is more affordable and convenient.

Development server

Runnpm start for a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files.

Development API

Runnpm run api for a separate server for API server. Navigate tohttp://localhost:3000/.

Production

Runnpm run production to generate a static files from Angular project and serve them from NodeJS.

Build

Runnpm run build to build the project. The build artifacts will be stored in theserver/dist directory.

Build Production

Runnpm run buildPROD to build the project for production. The build artifacts will be stored in theserver/dist directory.

Project general structure

├── server                   # The whole API folder├── api                   # Project Moules(Route Handlers, Mongoose Models), the modules are collected automatically,  and inserted into the API├── bin                   # Project start point├── config                # Config files├── lib                   # Libs used - express, mongoose├── src                    # Angular application source├── app                     # Angular App├── components                 # All the Angular's structure components├── guards                     # Guards(Auth)├── routing                    # Application Routing├── services                   # Services(Request)├── Request                   # Responsible for making get, post requests to the API.                ├── app.component.ts         # App's first component                ├── app.component.html       # App's entry template                ├── app.component.spec.ts    # Component's unit tests                ├── app.component.css        # Css for the component                ├── app.module.ts            # The root module that you bootstrap to launch the application├── assets                     # App assets, Here we can place public files├── environments               # Production and development environments

The client side was generated withangular-cli.


[8]ページ先頭

©2009-2025 Movatter.jp