User dashboard template created using MEAN stack.
See live demo at Heroku https://user-dashboard-app.herokuapp.com/ with test account username: tester
, password: 123456
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have following software installed to run this project locally.
Node.js
MongoDB
A step by step series of examples that tell you have to get a development env running
Clone this repository:
git clone https://github.com/leevilehtonen/user-dashboard-app.git
In the cloned repository folder:
npm install
npm start
This will get project running
If you want to start developing the frontend, instead of using the built on in the public folder. In the cloned repository, change to angular-src and start the development server for angular:
cd angular-src
npm install
ng serve
NOTE: To do the backend api requests you need have the backend also running and you need to check from the authentication service right paths for HTTP requests.
When you are ready developing the frontend. In the angular-src folder build the src to backend's public folder and run the backend:
ng build // in angular-src folder
cd .. // back to repos root folder
npm start
Backend tests: TODO
Frontend tests (limited), run at angluar-src
folder:
ng test
There is currently a demo running at Heroku which is connected to a free mLab MongoDB database.
You can also deploy this to web, for example Heroku (See instructions at Heroku website). To connect the database, you need to pass environment variable MONGODB_URI
which holds the URI of the database. Also you can pass your own SECRET
environment variable which will be used for JWT secret.
- Node.js - Javascript runtime for backend
- Express - Web application framework
- Mongoose - Elegant mongodb object modeling
- Angular-cli - Frontend development platform
Rest of the dependencies can be found in package.json files
- Leevi - Initial work
This project is licensed under the MIT License