The main point of the "DTU Event Tracking Application" project lies in providing a convenient and effective solution to address the problems and limitations in promoting student participation in extracurricular activities and student programs. This project will:
- Be a mobile app, running on the Android or iOS platform. It is built using React native.
- The software is designed for users who are students, student union members and club leaders. It is built using ReactJS.
- Client
- Clone the repository
git clone https://github.com/lopk11223399/DTUTrackingEvent.git
- Run
npm install
in the client_web(website) directory
cd client_web
npm install
- Run
npm install
in the DTUTrackingEve_ver2.0(mobile) directory
cd DTUTrackingEve_ver2.0
npm install
- Server
- Clone the repository (server)
https://github.com/heloqua1103/Event-tracking-be.git
- Run
npm install
in the Event-tracking-be(server) directory
npm install
- database
- Download xampp
- Open
xampp
, click onstart
ofApache
andMySQL
, click onAdmin
ofMySQL
- Create new database with name
event-tracking
- Open folder Event-tracking-be(server)
- Create a file with name
.env
. Copy and save
PORT=3000
JWT_SECRET=DTUEventTrackingApplication
JWT_SECRET_REFRESH_TOKEN=DTUEventTrackingApplication
CLOUDINARY_NAME=dwf5uoaqg
CLOUDINARY_KEY=969669645382666
CLOUDINARY_SECRET=BmAtscYlvgBsKSt17ZUSRENGXJ8
LIMIT_USER=10
CLIENT_URL=http://localhost:5173
- Open terminal of folder Event-tracking-be(server)
- Run
cd src
- Run
npx sequelize-cli db:migrate
- Run the server in development mode
- Open folder
Event-tracking-be
- Run the server
npm start
- Run the website in development mode
- Open folder
client_web/src/axios.js
- Change baseURL:
'http://localhost:3000/api/v1'
of server and save fileaxios.js
- Run the website
cd client_web
npm run dev
- Run the application for mobile in development mode
- Open folder
DTUTrackingEve_ver2.0/src/axios.js
- Change by IPv4 baseURL:
'http://192.168.23.240:3000/api/v1'
of server and save fileaxios.js
(How to get ipv4 address) - Mobile device, download
Expo
- Run the application for mobile
cd DTUTrackingEve_ver2.0
npm start
- open QR scan in the device, scan to run the application on the phone