import express, { Express, Request, Response, NextFunction } from "express";
import cors from "cors";
const PORT = 3000;
const app: Express = express();
app.use(cors());
app.use(express.json());
app.get("/about", (req: Request, res: Response) => {
res.status(200).json({
fullName: "Muhammed Fasil K",
interests: [
"coding ๐ป",
"movie ๐ฌ",
"music ๐ง",
"photography ๐ท",
"travel ๐งณ",
"coffee โ",
],
askMeAbout: ["web dev", "mobile dev", "movies"],
technologies: {
programmingLanguages: [
"C",
"C++",
"Java",
"Python",
"PHP",
"Ruby",
"Bash",
"TypeScript",
],
frontEnd: ["HTML", "CSS", "JavaScript", "ReactJS", "Next.js"],
backEnd: ["Node.js", "Express.js", "NestJS"],
databases: ["MongoDB", "MySQL", "PostgreSQL"],
testing: ["Jest"],
animationLibraries: ["Framer Motion", "GSAP", "AOS"],
apiTechnologies: ["REST", "GraphQL"],
otherLibraries: [
"Redux Toolkit",
"Tailwind CSS",
"Bootstrap",
"Figma",
"Pug",
"EJS",
"JSON",
"Data Structures and Algorithms",
"Zod",
],
},
});
});
app.get("/contact", (req: Request, res: Response) => {
res.status(200).json({
email: "[email protected]",
portfolio: "https://fasils.vercel.app",
links: {
linkedin: "https://www.linkedin.com/in/mfasilofficial",
leetcode: "https://leetcode.com/fasilofficial",
medium: "https://medium.com/@mfasilofficial",
},
});
});
app.use((req: Request, res: Response, next: NextFunction) => {
res.status(404).json({ message: "Oops! Route not found" });
});
app.use((err: any, req: Request, res: Response, next: NextFunction) => {
console.error(err.stack);
res.status(500).json({ message: "Internal Server Error" });
});
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
5-simple-js-projects's Introduction
5-simple-js-projects's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.