alielbashir / blog Goto Github PK
View Code? Open in Web Editor NEWA blog built with FastAPI, MongoDB, and Vue.js
A blog built with FastAPI, MongoDB, and Vue.js
Setup the Vue.js-based frontend with a project structure according to best practices
scope will be encoded within the JWT's "roles" key
Posts router will include basic CRUD operations for blog posts
POST /api/posts
{
"title": "vscode tutorial",
"content": "In this blog I'll be explaining how to use vscode, first step is to...",
}
HTTP status 201
HTTP status 401
HTTP status 403
GET /api/posts
{
"posts": [
{
"title": "vscode tutorial",
"id": 11,
"creation_date": 1649212132,
"username": "janedoe",
"content": "In this blog I'll be explaining how to use vscode, first step is to...",
"votes": 3
},
{
"title": "codeblocks tutorial",
"id": 131,
"creation_date": 1649213057,
"username": "johndoe",
"content": "In this blog I'll be explaining how to use codeblocks, first step is to...",
"votes": -26
}
]
}
DELETE /api/posts/{id}
{"message": "post deleted successfully"}
POST /api/posts/{id}/upvote
POST /api/posts/{id}/downvote
HTTP status 200
HTTP status 404
Add routes for user endpoints. User endpoints will be:
Connect frontend components to the API instead of using mock data
as seen in this and this workflow runs, the pytest step can fail sometimes where a bad request is registered for user login, and consequently other tests that may depend on user login.
Because the workflows run in parallel for 3.8 and 3.10 now, they can be running on the same database instance, which can cause conditions where a user is attempting to be registered that is already registered in the system, which can give back a 400 error.
Write the code for the frontend components using strategy similar to think in react or vue equivalent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.