Skip to content

dmusev/userManagementAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

User Management API

Introduction

Basic client-server application for managing user records.

userManagementAPI provides the following features:

  • Seed project for manipulating users' database records
  • CRUD operations over User model
  • Client-side built with Angular2/ ngx-bootstrap
  • Server-side built with Node.Js/ Express/ MongoDB/ Mongoose
  • NPM for package managing
  • Passport authentication
  • Login/Logout

How to start

Note that this project requires node >=v6.5.0 and npm >=3.10.3 in order to be able to take advantage of the complete functionality. Make sure you've got MongoDB configured dbpath and server running on default port 27017.

# Clone project
git clone https://github.com/dmusev/userManagementAPI.git

# Navigate to project folder
cd userManagementAPI

# Run back-end package installer
npm install

# Navigate to sub folder "public"
cd userManagementAPI/public

# Run front-end package installer
npm install

# Navigate to project folder again
node index.js

# APP is available at: localhost:8081
# User seeded for initial login: admin password: admin

Directory Structure

.
β”œβ”€β”€ app                               <- back-end project
|   β”œβ”€β”€ config
|   |   β”œβ”€β”€ auth.js
|   |   β”œβ”€β”€ config.js
|   |   β”œβ”€β”€ database.js
|   |   β”œβ”€β”€ express.js
|   |   β”œβ”€β”€ passport.js
|   |   └── routes.js
|   β”œβ”€β”€ controllers
|   |   β”œβ”€β”€ home-controller.js
|   |   β”œβ”€β”€ index.js
|   |   └── users-controller.js
|   β”œβ”€β”€ models
|   |   └── User.js
|   └── utilities
|       └── encryption.js
β”œβ”€β”€ public                              <- front-end project
|   β”œβ”€β”€ app
|   |   β”œβ”€β”€ 
|   |   β”œβ”€β”€ components
|   |   |   β”œβ”€β”€ login
|   |   β”œβ”€β”€ modules
|   |   |   β”œβ”€β”€ home
|   |   β”œβ”€β”€ shared
|   |   |   β”œβ”€β”€ footer
|   |   |   β”œβ”€β”€ header
|   |   β”œβ”€β”€ utils
|   |   |   β”œβ”€β”€ authGuardComponent.js
|   |   β”œβ”€β”€ app.component.ts
|   |   β”œβ”€β”€ app.modules.ts
|   |   β”œβ”€β”€ app.routes.ts
|   |   └── app.view.html
|   β”œβ”€β”€ assets                          <- global styles
|   β”œβ”€β”€ dist                            <- compiled typescript files to js
|   β”œβ”€β”€ index.html                      <- initial html loaded
|   β”œβ”€β”€ package.json                    <- dependencies of the front-end project
|   β”œβ”€β”€ systemjs.config.js              <- configuration of systemjs
|   └── tsconfig.js                     <- configuration of typescript
β”œβ”€β”€ .gitignore            <- ignore files before git upload
β”œβ”€β”€ index.js              <- node starting .js file
β”œβ”€β”€ jsconfig.json         <- configuration of javascirpt
β”œβ”€β”€ package.json          <- dependencies of the back-end project
└── README.md             <- project readme and how to install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published