Group name: CSDN Student name: ZIJIAN LIU 99148759 Student name: ZIYANG ZHENG 12436693
This project was bootstrapped with Create React App.
In the project directory, you can run:
firstly, please cd to project src directory,
Start server to transfer data between front end and database.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The project is deployed to heroku (https://imageblog-aip.herokuapp.com/).
- Consistent indentation: Write code with a consistent indentation style, following the existing styles used in the project.
- Code grouping: Different functions are placed in separate blocks of code, separated by Spaces.
- Consistent naming scheme: The word boundary of a name is achieved by capitalizing the first letter of each word.
- Avoid deep nesting: Make changes to the code to lower the nesting level and make it easier to read.
- Comments and documentation: Add comments to the function definition so you can preview it when you use it. Functions can be called from third-party libraries.
- Principle of dry: Avoid duplicating data and logic when writing code.
- Limit line length: Avoid writing long horizontal lines and limit the maximum number of characters per line.
- Single responsibility: Every class or module in a program should only concern itself with providing one bit of specific functionality.
- Code and data classification: Use MVC framework to divide the program into three different areas for later maintenance.
- Object orientation and programs: By creating a good architecture through object-oriented programming, program functions can perform specific tasks independently.
- Avoid premature optimization: Premature optimization leads to a failure to figure out what the real problem is, which wastes a lot of time speeding up a function that isn't called very often.
- File and folder organization: Avoid writing complete code in a single file, or function files can be too large and difficult to maintain. Use frameworks to mimic the folder structure.
- Code refactoring: Refactoring allows you to change code without changing other functionality, improving readability and quality.
- Open/Closed: Open the code to extend, but not modify. Improved stability and maintainability.
- Capitalize SQL special words: Distinguish table and column names by uppercase.