ATE Dashboard v2.0 is the second generation of ATE Dashboard that is built to help ATE monitors the production test activity.
- The technologies used in this project are MongoDB + Express + VueJS + NodeJS (MEVN).
- For better understanding, please read the Architecture section.
- For the development installation, please refer to Getting Started.
- For deployment, refer to Deploy On Docker.
- VueJS retrieves data by using RESTFUL API (NodeJS + Express)
You could check the API url in server router (server/routers/index.js)
Note: every URL will be begun with/api
e.g.GET http://localhost:8000/api/tests/all
. - NodeJS + Express retrieves data from MongoDB using MongoDB Node Driver.
Current code uses v3.6 which is compatible with MongoDB v3.6 and v4+ (Compatibility check here) - C# Program inserts data to MongoDB using MongoDB C# Bson driver
- However, C# Program uploads the .txt (Data, log, ComportText, TelnetText) to the NodeJS server using RESTFUL API.
- Install NodeJS v14.17.0 (I suggest you to use nvm-windows or nvm if you use other OS beside Windows). You also could directly download and install from official NodeJS.
- Install MongoDB v4.4.6. Follow this instruction
-
Clone the repo
git clone http://gitlab.jazzhipster.com.tw:30000/team_ate/Dashboard-V2/ate.git
-
Go to server folder
cd server
-
Install NPM packages
npm install
-
Run the server (Backend)
npm run serve
-
Open new terminal and go to client folder
cd client
-
Install NPM packages
npm install
-
Run the client (Frontend)
npm run serve
-
Open browser and type
localhost:8080
Notes: Before build and running below commands, make sure you don't have any images named dashboard-server and dashboard-client. If yes, please name your image with other name.
Also ensure to free port :8080 and :80
-
Install MongoDB, client(VueJS), and server (NodeJS) using MongoDB Docker Official Images docker-compose.yml and run these below commands
docker-compose up -d
-
Install MongoDB Compass in your computer, then connect to your admin database with username and password in your docker-compose.yml
-
Then, Create Database named
ate_mongodb
with collection nameauth_users
,ate_projects
,ate_logs
,ate_files
andate_tests
.
Configure the DB_HOST
url in config.js with
DB_HOST: 'mongodb://<username>:<password>@<ip_address>:27017/?authSource=admin'
- Open browser, go to http:<ip_address> e.g.
http://192.168.100.150
, it will redirect you to Login page
References: