A: Leaders to do:
1.1 Creating a Repository 1.2 Creating a Branch 1.3 Initializing a Project ===> Set up a directory structureCopy the code
Perform the following operations:
2:1: login gitee create a warehouse in the local warehouse cloning down: git clone https://gitee.com/zhu12/es6.git 3: CD into the clone warehouse directory, check the remote warehouse: Git branch -r: create a dev branch and commit the branch to a remote repository Git branch -r --set -- upstream origin develop Git push --set-upstream origin feature/login Vue create the project name, remember to select the merge option to create the back-end project: Exit the project name directory, global installation: NPM install express-Generator-g Local installation: Express --view=ejs server enter the project: CD server install dependencies: NPM install Start project: NPM run start Access the back-end project: http://localhost:3000/ Commit the front-end project to the remote branch: go to the cloned project directory and switch to the branch to commit: git checkout Develop Add the project to the local: git add. Commit project to staging area: git commit -m 'init' Commit project to remote repository: Git push, go to Gitee Leadership is done hereCopy the code
Two: Development to do:
Git clone -b < branch name > < branch address > Git config -l Git config user.name 'username' git config user.email 'email' Git branch -r < branch name > git branch -b < branch name >Copy the code
2.4: the login folder is empty, so you can't find it, so you need to create a new one manually. 2.5: After writing the code, you need to delete the node_models module and then commit it. May encounter a problem at this time, oneself handle according to hintCopy the code
Git commit -m 'login_v1.0' Git push --set-upstream origin feature/loginCopy the code
Iii. Project video Assessment:
This time we mainly use ES6 to do a login module: Git checkout -b < branch name > < branch name > create render page files in login folder: Create a template for the page to render the login and user password entry fields. Init initialization file: Declare the prompt information object and call the rendering data function, as well as call the function of related events, export a login, event event processing file through export default, in which the user name and password and login DOM node are obtained first, bind the click event to the login DOM, Use async and await to decorate the mock request event to get the username and password. Create an ajaxData request file in the API folder and request mock data via FETCH. Create an API file in the SRC directory, create a new fetchmokc. js file, and use fetchmock. mock to simulate the data returned by the back end to determine whether the user login name and password are normal and give corresponding promptsCopy the code