Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Here is an unedited transcript with OpenAI's GPT-3. My prompts are peppered throughout, but I believe them to be obvious.

/START

Please list some microservices I would have to create in order to implement a system to recommend a daily workout to a user. Assume the user's information is stored in a database.

1. User Profile Microservice: This microservice would be responsible for retrieving, updating, and storing user information (e.g. age, weight, height, etc.) from the database.

2. Workout Recommendation Microservice: This microservice would be responsible for recommending a daily workout to the user based on their profile information.

3. Workout Tracking Microservice: This microservice would be responsible for tracking the user's workout progress and updating the database accordingly.

4. Exercise Library Microservice: This microservice would be responsible for storing the exercises and other relevant information (e.g. descriptions, images, etc.) in the database.

5. Notifications Microservice: This microservice would be responsible for sending notifications (e.g. reminders, updates, etc.) to the user.

Please list a suitable tech stack for 2 people to implement these services with.

Front-end: HTML, CSS, JavaScript, React.js

Back-end: Node.js, Express.js, MongoDB

Testing: Jest, Enzyme

Deployment: Docker, AWS

How would you implement the Notifications Microservice using these? Be specific.

The Notifications Microservice could be implemented using Node.js and Express.js. Node.js would be used to create the API endpoints for the microservice, and Express.js would be used to create the routes and handle incoming requests. The microservice would also need to connect to the database in order to retrieve user information. Once the user information is retrieved, a notification could be sent using a library like Twilio or Sendgrid. Finally, the microservice would need to log the notification in the database.

Why did you choose twilio or sendgrid over FCM?

I chose Twilio or Sendgrid over FCM (Firebase Cloud Messaging) because they both provide a more robust set of features and capabilities than FCM. Twilio and Sendgrid both offer advanced features such as personalization, scheduling, segmentation, analytics, and more, allowing for more flexibility and customization when sending notifications. In addition, both are more reliable and have better uptime than FCM.

Can you define the api for the notifications service?

The Notifications Microservice would have two main API endpoints:

1. POST /notifications: This endpoint would be used to create and send a notification to a user. It would require the user’s ID, the content of the notification, and any other relevant data (e.g. expiration time, priority, etc.).

2. GET /notifications: This endpoint would be used to retrieve all notifications for a given user. It would require the user’s ID as a parameter and would return a list of notifications.

/END transcript

This is remarkable. Absolutely astounding.



It's one thing to produce ideas, it's another thing to implement everything including the CI/CD, authentication, Github Actions, etc... Now when some new unicorn comes along in 2036 that promises a ChatGPT+ based 'solution generation' app that can produce all the code & deployment for a real revenue generating application, then it's game over for all of us.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: