This API Portfolio showcases various routes and functionalities for managing a portfolio application.
To get started with this API, follow the steps below:
- Clone the repository:
git clone <https://github.com/fab-ryan/my-brand-ts>
1. stall dependencies:
npm install
- Create a
.env
file in the root directory and add the following environment-specific variables:
Set up environment variables:
PORT=
NODE_ENV=
LOG_LEVEL=
LOG_LABEL=
DEV_PORT=
DEV_DB_URL=
DEV_DB_PASSWORD=
DEV_DB_USERNAME=
CLOUDINARY_USER_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
TEST_PORT=
TEST_DB_URL=
TEST_DB_PASSWORD=
TEST_DB_USERNAME=
PRIVATE_KEY=
- GET /api/blogs: Get all blogs
- GET /api/blogs/:id: Get a blog by ID
- POST /api/blogs: Create a new blog
- PUT /api/blogs/:id: Update a blog
- DELETE /api/blogs/:id: Delete a blog