jameskolwolf1/Vector.io_API

James Loving-Thomas

Backend Engineer
Axios
JavaScript
MySQL

Overview

This is the backend and API for the VectoirIO website. It will store data and also make API calls to retrieve meaningful information. The data will contain information about the article, posts, comments, solutions, and the version/model of a computer component.
The URL for the API will be http://localhost:8080
The reason for this is because the mysql server is local. If the user wants to use something else to host it, they have the freewill to do so.
Every "computerComponents" will contain unique information

Tech Stack

List technologies that will be used in your app, including any libraries to save time or provide more functionality.
Javascript
MySQL
Express
Knex
Cors

Authentication

For Authentication, there is a password and it is stored in .env and the variable name is "API_DB_PASSWORD" Also if your MySQL hostname is not "root" then the hostname needs to be changed.
The variable that stored it is "API_DB_HOSTNAME". you can also change the API URL or the Database host ip within that file.

API Errors

This API may return a 400 or 404 Errors

Routes/APL Calls

GET /computerComponents
Return an array of computerComponents objects Example response body
GET /computerComponents/:id
Returns detail of a single computerComponent by id Example response body
GET /computerComponents/:id/solutions
Return a list of solutions based on the computerComponent id Example response body
GET /computerComponents/:id/versionOrModels
Return a list of versions or models for that computerComponent by id Example response body
GET /computerComponents/:id/posts
Return a list of posts by computerComponent id Example response body
POST /computerComponents/:id/posts
Creates a new post for this computerComponent Post body example Response body example
GET /posts
Return a list of all the posts Example response body
GET /posts/:id/comments
Return a list of comments by posts ID Example response body
POST /posts/:id/comments
Creates a new Comment for specific posts Post body example
PUT /comments/:id
Update the likes on that specific comment Regular Example Comment PUT body example response body example
Partner With James
View Services

More Projects by James