news
所属分类:中间件编程
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-03-09 04:19:29
上 传 者:
sh-1993
说明: 具有后端和前端的新闻应用程序允许您创建包含或不包含图片的新闻,显示和删除它们。特别是,有...,
(News app with backend and frontend allows you to create news with or without a picture, display and delete them. In particular, there is a function for commenting on the selected news with an indication of the author, and if you leave the field empty, the comment will be considered anonymous.)
文件列表:
news-api/ (0, 2023-03-08)
news-api/config.ts (257, 2023-03-08)
news-api/database.sql (1025, 2023-03-08)
news-api/index.ts (528, 2023-03-08)
news-api/multer.ts (597, 2023-03-08)
news-api/mysqlDb.ts (359, 2023-03-08)
news-api/package-lock.json (103660, 2023-03-08)
news-api/package.json (554, 2023-03-08)
news-api/public/ (0, 2023-03-08)
news-api/routes/ (0, 2023-03-08)
news-api/routes/comments.ts (1665, 2023-03-08)
news-api/routes/news.ts (2491, 2023-03-08)
news-api/tsconfig.json (11298, 2023-03-08)
news-api/types.d.ts (260, 2023-03-08)
news-frontend/ (0, 2023-03-08)
news-frontend/package-lock.json (1243749, 2023-03-08)
news-frontend/package.json (1404, 2023-03-08)
news-frontend/public/ (0, 2023-03-08)
news-frontend/public/favicon.ico (3870, 2023-03-08)
news-frontend/public/index.html (1721, 2023-03-08)
news-frontend/public/logo192.png (5347, 2023-03-08)
news-frontend/public/logo512.png (9664, 2023-03-08)
news-frontend/public/manifest.json (492, 2023-03-08)
news-frontend/public/robots.txt (67, 2023-03-08)
news-frontend/src/ (0, 2023-03-08)
news-frontend/src/App.tsx (782, 2023-03-08)
news-frontend/src/app/ (0, 2023-03-08)
news-frontend/src/app/hooks.ts (262, 2023-03-08)
news-frontend/src/app/store.ts (394, 2023-03-08)
news-frontend/src/assets/ (0, 2023-03-08)
news-frontend/src/assets/images/ (0, 2023-03-08)
news-frontend/src/assets/images/noImageAvailable.jpeg (13161, 2023-03-08)
news-frontend/src/axiosApi.ts (147, 2023-03-08)
news-frontend/src/components/ (0, 2023-03-08)
news-frontend/src/components/UI/ (0, 2023-03-08)
news-frontend/src/components/UI/AppToolbar/ (0, 2023-03-08)
... ...
### News with backend and frontend
![news](https://user-images.githubusercontent.com/99384076/222956571-6cd14e40-0137-45f9-af92-048724cddd89.gif)
## Main features:
- news creation
- fetching of all news
- fetching of a selected news
- deleting the selected news
- commenting on a separate news
- deleting the selected comment
## Stack:
TypeScript, Node.js, Express.js, mySQL, Multer, React, Axios, Redux-Toolkit, React-Router, Material UI, Styled-Components, Dayjs
# To run this app:
1. Clone this repository
## For backend:
If you have installed mySQL:
2.1. In query console run all commands from file api/database.sql
2.2. Change user and password info in api/config.ts
2.3. Install all necessary dependencies: via npm i
2.4. Start server via: npm run dev
## For frontend:
3.1. Install all necessary dependencies via npm i
3.2. Start the app via npm start
近期下载者:
相关文件:
收藏者: