This project is a RESTful API that provides data for the top 50 tech companies in the US. It was built using Node.js, Express, and JSON data.
The main challenge of this project was designing an API that allows users to filter and retrieve data about the top 50 tech companies based on various parameters such as company name, sector, state, and founding year.
Node.js Express CORS JSON Swagger Express List Endpoints
Retrieve data for all top 50 tech companies Filter companies by sector Finds companies by name Filter companies by state Filter companies by founding year Filter companies by sector and state Error handling for invalid routes
/ - Index route with a welcome message /companies - Get data for all companies /companies/sectors - Get data for companies in different sectors /companies/:name - Get data for companies by name /companies/states/:state - Get data for all companies with a HQ in a specified state /companies/years/:year - Get data for all companies founded in a specified year /companies/sectors/:sector/:state - Get data for companies in a specified sector with a HQ in a specified state
-
- Error route
Clone the repository Install dependencies with npm install Run the server with npm start Access the API at http://localhost:8081
https://project-express-api-up7t32af6a-lz.a.run.app/
https://project-express-api-cvzekbgn3q-lz.a.run.app/api-docs/
https://www.kaggle.com/datasets/lamiatabassum/top-50-us-tech-companies-2022-2023-dataset