[go: up one dir, main page]

0% found this document useful (0 votes)
16 views3 pages

User Activity Logger

The DevifyX Node.js assignment requires the development of a backend application to log user activities such as logins and page views via a RESTful API, with a deadline of 7 days. Key features include user authentication, activity logging, API endpoints, filtering, pagination, error handling, input validation, and database integration. Bonus features and technical requirements are also outlined, along with deliverables and evaluation criteria for submission.

Uploaded by

comot70387
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

User Activity Logger

The DevifyX Node.js assignment requires the development of a backend application to log user activities such as logins and page views via a RESTful API, with a deadline of 7 days. Key features include user authentication, activity logging, API endpoints, filtering, pagination, error handling, input validation, and database integration. Bonus features and technical requirements are also outlined, along with deliverables and evaluation criteria for submission.

Uploaded by

comot70387
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DevifyX Node.

js Assignment
Assignment Title: User Activity Logger
Assignment Description: Store actions like login & views
Assignment Deadline: 7 Days

Objective
Develop a robust backend-only Node.js application to log and manage user activities (such
as login and page views) via a RESTful API. No frontend implementation is required.

Core Features
1. User Authentication: Implement secure user registration and login using JWT-
based authentication.

2. Activity Logging: Log user actions such as login, logout, and page views with
timestamps.

3. API Endpoints: Provide RESTful API endpoints for logging and retrieving user
activities.

4. Activity Filtering: Allow filtering of activities by user, action type, and date
range.

5. Pagination: Support pagination for activity retrieval endpoints.

6. Error Handling: Implement comprehensive error handling for all API endpoints.

7. Input Validation: Validate all incoming request data for security and integrity.

8. Database Integration: Use a database (MongoDB or PostgreSQL) to persist user


and activity data.

Bonus Features
ˆ Real-time activity updates using WebSockets.

ˆ Support for additional activity types (e.g., password changes, profile updates).

ˆ Role-based access control for activity retrieval.

ˆ Integration with external logging/monitoring services.

1
Technical Requirements
ˆ Node.js (v14 or above)

ˆ Express.js framework

ˆ MongoDB or PostgreSQL as the database

ˆ JWT for authentication

ˆ Proper use of environment variables

ˆ Well-structured project architecture (MVC or similar)

ˆ Use of Git for version control

ˆ Clear and concise API documentation (Swagger or similar)

Deliverables
ˆ Source code repository (GitHub or similar)

ˆ README file with setup instructions

ˆ API documentation (Swagger/OpenAPI or Markdown)

ˆ Sample environment file (.env.example)

ˆ Database schema or migration scripts

ˆ Postman collection (optional)

Use of AI Tools
You are permitted and encouraged to use AI-based coding tools such
as GitHub Copilot, ChatGPT, or similar platforms to assist with code
generation, debugging, and documentation. However, the final submission
should reflect your own understanding and structure.

Submission
Submit your assignment using the following form:
https://forms.gle/LAvLWFmHRLXswwsx5

2
Evaluation Criteria
ˆ Correctness: Implementation meets the requirements and handles edge cases.

ˆ Code Quality: Clean, readable, and maintainable code with proper structure.

ˆ Security: Proper authentication, validation, and error handling.

ˆ Documentation: Clear setup instructions and comprehensive API documenta-


tion.

ˆ Bonus Features: Implementation of any additional features.

ˆ Timely Submission: Assignment submitted within the deadline.

Click here to read our Terms and Conditions

You might also like