Posts is a minimalistic clone of https://posts.cv/, which is itself a simplified and scaled-down alternative to Twitter. We built this clone solely for educational purposes.
This repository contains the CRUD operations for posts. It focuses on the backend API. The frontend was implemented using React in an earlier project.
-
Clone this repository.
-
Navigate to the project directory.
-
Navigate to the
apidirectory and install the dependencies withpnpm install. -
While in the
apidirectory, run the API server, usingpnpm dev. This will start the server onhttp://localhost:3000. The server will automatically reload if you make changes to the code.- You may want to use
pnpm run db:pushto create the database andpnpm run db:seedto seed it with some data before starting the server.
- You may want to use