Closed AlingChen closed 6 years ago
Thanks. We'll review and get back to you soon.
Hi Nancy @AlingChen, I'm Kate from Wiredcraft dev team, assigned to review your work.
Just wondering did you forget to include some assets in this PR, as when I was trying to run npm start
, it gave me
Failed to compile
./src/assets/css/font-awesome.min.css
Module not found: Can't resolve '../fonts/fontawesome-webfont.eot' in '/Users/kwu/Work/temp-repo/AlingChen-test/src/assets/css'
This error occurred during the build time and cannot be dismissed.
This is Mayi. And I got the same error.
Hi guys, so sorry for that. I just fixed it. plz try it again.
By the way, Do you guys have installed redux-dev-tools? if not, please install it. Thank you so mush.
@AlingChen Just take a glimpse for your code. As you said, Yes, it's quckly but ugly. lol!
You know for the test, quickly is not always be the mainly factor we consider about. You could try to make us impressive with no matter what the libraries chose or technology as you like.
Will leave some opinions here later..
@flyingant Thanks for your 'glimpse' lol! I know this is really hardly presentable. But I still expect more feedback from you.:-)
@woodpig07 Hi Kate, Yes, I implemented these api methods, and the GET request works well. But when I send a PUT or POST request with the body, I can't get any data from the body on the server side. I spent too much time but still could not find the reasons.(awkward (ㄒoㄒ) so I decided to use redux to store data instead of these APIs.
@AlingChen you are using port 3001 for backend server, I guess the port is already used by frontend as you run it by react-scripts
.
You can change the server port to something like 4000, though you will have to configure CORS for backend in this way.
Or you can use node server to host the compiled frontend files, then both backend and frontend will use same port.
Just suggestions :-)
@woodpig07 Thank you Kate, The front end is using port 3000, So I thought there's no conflict. But you are right, perhaps it is because of the issue of cross-domain. I will take some time to try it again. Thanks again:-)
Hi @AlingChen This is MaYi again, the leader of the front end team from Wiredcraft. You did OK on front end part. And I would ilke to challenge you more in order to know more about your ability.
(It's pure front end!!) I noticed that you already had the editable form to create a new light talk. And I hope you could fullfill the functionality with the requirements below:
Please add the following fields with rules
- Title (Input filed) [cannot be blank][the lenght of charactors should be less than 60][Cannot be the same to exsit one][shoud avoid XSS attack]
- Publish Date (Date Picker)[Cannot be blank]
- Description (Textarea)[Cannot be blank][the lenght of charactors should be less than 600][shoud avoid XSS attack]
- Author (Input field)[Cannot be blank][the lenght of charactors should be less than 20][shoud avoid XSS attack]
- Public (Select field)[Default value should be blank]
Validate the form field before submit
Display the error message below the field if validation is failed
(Advanced) Automaticly validation
(Advanced) Integrate the validation feature to redux
Let me know if you got any problem.
Hi @flyingant, I've just finished all of the functionality you listed above,Please review and let me know if there's any problem. Looking forward to your feedback. Thank you
Thanks @AlingChen, that should be enough for us to take a decision. We'll come to you soon.
Sorry for the late, I spent a lot of time on the backend. But unfortunately, it didn't work until now because I am not very familiar with backend /(ㄒoㄒ)/~~.
I finished the front end quickly, and it can work well, but there‘s much that needs to be improved. If have what shortage of place please remind much and much. Thanks a lot!
Environment setup
In the root dir run
npm install
to install the dependencies.Run
npm start
to start the server.The homepage will be accessible at localhost:3000