![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/jacky-htg/api-news
The News API using GO Language, MySql and redis
Fitur :
There is 2 (two) role, Editor and Writer. Editor can access all api. Writer only can create new news and edit own news. Guest can read topics and read news.
Guest :
Writer :
Editor :
Websocket is used to broadcast new publish news. WebSocket address is : ws://localhost:8080/newssocket. Here is sample script on client when consum a websocket. Create a file client.html on your document root and open it using your favorite browser : http://localhost/client.html
<script>
var ws = new WebSocket("ws://localhost:8080/newssocket");
ws.onopen = function() {
ws.send("hello server!")
}
ws.onmessage = function(event) {
var m = event.data;
if (m === "pong") console.debug("Received message", m);
else notifyMe(m);
}
ws.onerror = function(event) {
console.debug(event)
}
function notifyMe(message) {
// Let's check if the browser supports notifications
if (!("Notification" in window)) {
alert("This browser does not support system notifications");
}
// Let's check whether notification permissions have already been granted
else if (Notification.permission === "granted") {
// If it's okay let's create a notification
var notification = new Notification(message);
}
// Otherwise, we need to ask the user for permission
else if (Notification.permission !== 'denied') {
Notification.requestPermission(function (permission) {
// If the user accepts, let's create a notification
if (permission === "granted") {
var notification = new Notification(message);
}
});
}
// Finally, if the user has denied notifications and you
// want to be respectful there is no need to bother them any more.
}
</script>
for demo documentation, see https://api-news.rijalasepnugroho.com/documentation/
Api Key : n3WsAp1D3v
Editor : email (editor@gmail.com) password (1234)
Writer : email (writer@gmail.com) password (1234)
This API using Golang. Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
to install go, https://golang.org/doc/install
File Configuration on ./config/config.json
You can run application with going the directory api-news and command : go run main.go
You can test the api using command : go test -v
For api documentation, you can open on the browser: http://localhost:8080/documentation/
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.