Closed h0shizaki closed 1 year ago
From the SE262's requirement , we must use MongoDB and Mongoose library. And we must apply EJS to generate html. Then we must use Leaflet for creating an interactive map.
example of directory structure
Using Express to serving the EJS template and also apply the Bootstrap to enhance the UI.
Encrypt the password before save to the MongoDB with bycpt library and implement the session-based authentication.
Apply the Leaflet that it!
Fetch the items from the mongodb and then, render them with ejs. Implement the cart by store the cart item in the session.
Authorize the staff separate from the costumer by adding { "role" : USER_ROLE } into the schema then, Implement CRUD operation on food, order and user. And if possible apply ChartJS for create a summarize of the restaurant.
feature:
feature:
feature:
feature:
At this version, we can release this project. feature:
Staff dashboard can display the statistical data
@IcePutipong มาอ่านแผนคร่าวๆ ได้ตรงนี้นะ
Init project
Create unit test then, run this unit test and it magically passes!!
describe('EZ Unit test', () => {
test('Test', () => {
expect(2 + 1).toBe(3);
});
});
4cb7f87bae8e6bb292879e93e6673303c98f8adb
Done
Description
We need to initialize the project. Then select the tools and design the architecture