In order to implement this project, we need to do the setup of git. There are two method to initialize git:
git clone [email protected]:COMP3900-9900-Capstone-Project/capstoneproject-comp9900-h18c-fantastic.git
git clone https://github.com/COMP3900-9900-Capstone-Project/capstoneproject-comp9900-h18c-fantastic.git
- First, you need to install React, NPM and Node.js to ensure that the program can be used normally.
- React: You can download react by visiting Node.js (reactjs.org) if you do not install it.
- Or you can also directly use the react CDN Library of static file CDN by: <script src="https://unpkg.com/react@16/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> But it not recommended.
- Node.js: You can download react by visiting Node.js (nodejs.org) if you do not install it.
- Download python 3.6 from the official website: https://www.python.org and install it with instruction.
- Required Packages: flask, pyrebase, firebase_admin, json, base64.
After installing the required APIs, we need to download the project from the Github. Then unzip the code file and the file structure is as shown in the figure below:
- After downloading the source code, we need to open Terminal firstly.
- Install all packages we need by running: pip install -r requirement.txt
- Use “cd” to enter “backend” and run: python app.py
- Then, open another terminal and “cd” to “frontend/js” and then input “npm install” and “npm start”
- And now you could see the website on your browser
In the writing process, due to the use of integrated writing plug-ins, after the installation of node.js and react, you need to install some necessary plug-ins through terminal to ensure normal use. These include:
- Ant-Design: $ npm install antd –save
- Ant-Design/chart: $ npm install @ant-design/charts
- Ant-Design/icons: $ npm install --save @ant-design/icons
- The terminal runs normally, and,
- The web page automatically jumps to the editable web page of react, where localhost is 3000.
- User information for testing is: (1) Email: [email protected] (2) Password: 123fff
Hint: If you want to test the “Reset Password” function, you need to register a new account by using real email.
- Admin information for testing is: (1) Email: [email protected] (2) Password: 123456