Setting Up & Reviewing our Application
Throughout this course, we will be practicing our testing concepts on a practical application. The application will be a much simplified version of the Twitter app.
The application file structure is summarized below:
controllers/userController.jscontains functions that are used by - -routes/index.js. These functions define what happens when a user visits a specific route.modelsfolder contains classes forpostanduser, which provide utility methods for querying the database. It also contains thedatabase.jsscript which initializes the database.publicfolder contains all the static files that should be delivered to the user unchanged, without any modification.- The
routes/index.jsfile defines the routes of our application. - The
viewsfolder contains all the Embedded JavaScript (EJS) templates that are used in our application. app.jsis the entry point of our application. It contains code for configuring and starting the Express server.
Following are some minimum feature requirements for our end product:
- Ability to Like and Share posts;
- Ability to Follow and View other profiles;
- Profile Management Section;
- Sorting posts by Popularity or Recency;
By the end of the course, all the above-mentioned features will be added to our application and we will have a sufficient amount of test cases for each of those features.
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.85
Setting Up & Reviewing our Application
Swipe to show menu
Throughout this course, we will be practicing our testing concepts on a practical application. The application will be a much simplified version of the Twitter app.
The application file structure is summarized below:
controllers/userController.jscontains functions that are used by - -routes/index.js. These functions define what happens when a user visits a specific route.modelsfolder contains classes forpostanduser, which provide utility methods for querying the database. It also contains thedatabase.jsscript which initializes the database.publicfolder contains all the static files that should be delivered to the user unchanged, without any modification.- The
routes/index.jsfile defines the routes of our application. - The
viewsfolder contains all the Embedded JavaScript (EJS) templates that are used in our application. app.jsis the entry point of our application. It contains code for configuring and starting the Express server.
Following are some minimum feature requirements for our end product:
- Ability to Like and Share posts;
- Ability to Follow and View other profiles;
- Profile Management Section;
- Sorting posts by Popularity or Recency;
By the end of the course, all the above-mentioned features will be added to our application and we will have a sufficient amount of test cases for each of those features.
Thanks for your feedback!