Created for the Linode x Hashnode Hackathon
Practice your HTTP requests or test and inspect your webhooks. See the data sent to your servers by third party services!
10 Minute Endpoint is an open-source service that generates a temporary endpoint for a developer to test and inspect HTTP requests sent to it, which can be useful when developing their APIs that may need certain fields of data.
- Generates endpoints for anonymous users; no signup required.
- Displays logged data to the developer.
- Deletes data as quickly as possible.
- Prisma (MongoDB)
- Linode (Ubuntu 20.04)
- Express (NodeJS)
- Bulma (CSS)
Either install MongoDB locally to your environment, or use one online (through Mongo Atlas for example)
Prisma requires a replica set instead of standalone database.
Note - Run prisma generate
after installing the packages to generate the MongoDB schemas internally.
- Clone the repo:
git clone https://github.com/danidre14/10-minute-endpoint-nodejs.git
- Set environment variables for the following (using the
.env
file, for example):- NODE_ENV
- PORT
- SESSION_SECRET
- DATABASE_URL
Rename the .env.sample
file to .env
and use actual credentials obtained in the Prerequisites.
- Install all dependencies:
cd /path/to/project
npm install
# or yarn install, or other depending on your package manager
- Generate dev dependencies:
prisma generate
- Run the project:
npm start
Open a browser and hit http://localhost:5000