This is a simple Express Node.js API that serves as a digital representation of my resume, providing information about my professional experience and skills.
This API is designed to showcase my professional experience and skills, providing data in a structured format. It's built using Express.js and is a straightforward example of a CRUD (Create, Read, Update, Delete) API for the "Experience" and "Skills" sections of my resume.
GET /experience
: Get a list of professional experiences.POST /experience
: Add a new professional experience.PUT /experience/:id
: Update a specific professional experience by its ID.DELETE /experience/:id
: Delete a specific professional experience by its ID.
GET /skills
: Get a list of technical skills, languages, and interests.POST /skills
: Add new skills or interests.PUT /skills/:id
: Update a specific skill or interest by its ID.DELETE /skills/:id
: Delete a specific skill or interest by its ID.
To run this project locally or deploy it to your own server, follow these steps:
-
Clone this repository:
git clone https://github.com/your-username/my-resume-api.git cd my-resume-api
-
Install the required dependencies:
npm install
-
Create an .env file with your database credentials. You can use a local database or a remote one. For simplicity, I am hosting a free MySQL database from Planetscale. You will need these env vars:
DATABASE_HOST= DATABASE_USERNAME= DATABASE_PASSWORD=
-
Start the server:
npm start
The API will be available at http://localhost:3000
by default. You can customize the port by setting the PORT
environment variable.
You can use this API to fetch information about my professional experience and skills programmatically. Here's a basic example using curl
to retrieve my experience:
curl http://localhost:3000/experience
Make sure to adapt this to your preferred method of making HTTP requests, such as using a tool like Postman or integrating it into your own application.
If you have suggestions or improvements to this project, feel free to open an issue or create a pull request. Your contributions are welcome!
This project is licensed under the MIT License.