Giter VIP home page Giter VIP logo

hackernews's Introduction

Nuxt Hacker News

Hacker News clone built with Nuxt.


Live Demo

Demo

https://hn.nuxt.space

Hosted on Vercel: npm run build

To disable server-side render for a page, simply append ?csr to the URL, example: https://hn.nuxt.space/news/1?csr

Performance

  • Lighthouse 100/100 (Slow 4G / Mobile Moto G4)
    • Interactive: 1.4s
    • Total Blocking Time: 30ms

Features

  • Server Side Rendering
  • Vite-based hot module replacement (HMR) dev environment
  • Deploys anywhere with zero config (Vercel, Netlify, Cloudflare, etc.) powered by Nitro
  • Code Splitting
  • Prefetch/Preload JS + DNS + Data

Build Setup

Requires Node.js 14+

# install dependencies
npm install # or yarn

# serve in dev mode, with hot reload at localhost:3000
npm run dev

# build for production (server-side rendering)
npm run build

# serve in production mode (server-side rendering)
npm start

# validate and fix with ESLint (with Prettier)
npm run lintfix

Links

For the Nuxt 2 version, check out the nuxt2 branch

License

MIT

Credits

This repository is originally ported from vue-hackernews-2.0

hackernews's People

Contributors

addyosmani avatar antfu avatar asonnleitner avatar atinux avatar bodyno avatar danhawkes avatar danielroe avatar husayt avatar hyra avatar isairz avatar limonte avatar lukyth avatar lynnjinjie avatar miguepiscy avatar netpi avatar panjiachen avatar pi0 avatar piusnyakoojo avatar renovate[bot] avatar rezahaidari avatar roryokane avatar rumkin avatar sibbng avatar sirlancelot avatar sma11x avatar stevenyuysy avatar tangwz avatar williamboman avatar yyx990803 avatar zuramai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hackernews's Issues

Migrate Datastax Enterprise Cassandra to Apache Cassandra

We have currently using DSE 4.8 and 5.12. we want to migrate to apache cassandra .since we don't use spark or search thought save some bucks moving to apache. can this be achieved without down time. i see sstableloader works other way. can any one share me the steps to follow to migrate from dse to apache cassandra. something like this from dse to apache.
To know More Vist : Apache Cassandra

This question is available on Nuxt community (#c17)

Wrong first page

Hi, is it possible that the New view is fetching a the page number 1 as default instead of page number 0.

I checked the fetch request and is going to https://hn.nuxtjs.org/api/hn/news?page=1. When I try that same request but with page=0 y get the top news currently on HN. I couldn't find any other way to view the current top news.

Hope it makes sense

can't run

b3ac337c-94d8-4c9f-815c-39790f7e23e3

After the installation can not run, run dev successful but running in the 3000 port has been loading

This question is available on Nuxt.js community (#c3)

use docker error

run in project root with Dockerfile

docker build -t nuxt-example .

Run instance in foreground with exported port 8080

docker run -it --rm -p 8080:3000 nuxt-example

then view

127.0.0.0:8080
no any Response

This question is available on Nuxt.js community (#c1)

Seeking Help: PostCSS Syntax Highlighting Issue in VS Code

Hello,

I'm currently developing a project based on this template, and I'm facing an issue with syntax highlighting in VS Code for <style lang="postcss"> blocks. The CSS syntax within these blocks isn't being highlighted correctly.

Could you please recommend essential VS Code plugins or extensions to ensure correct syntax highlighting for PostCSS?

Thank you.

Water tank cleaning

Introducing our professional water tank cleaning services! Our team of expert technicians has the experience and knowledge to effectively clean your home or business’s water tanks. We use top-of-the-line equipment, along with efficient positioning and extensive testing processes, to deliver a premium service that is sure to satisfy. With regular maintenance from our company, you can rest assured knowing your water will always be in superior condition for drinking and other uses. Schedule an appointment today for fast, reliable results at an affordable rate—ensuring your health and safety every time! WATER TANK CLEANING product is the perfect solution to quickly and easily eliminate dirt, grime, algae, fungi, and other microbial deposits from your water tanks. It helps prevent corrosion due to its proprietary formula that breaks down these organic materials at a molecular level for thorough and effective cleaning action. Perfectly safe for all kinds of tanks including plastic or metal – it does not corrode or damage them in any way! A single application will completely flush out debris from narrow pipes so you can enjoy crystal-clear drinking water - wherever you are!
• TECHNICAL SERVICES
ELECTRICAL WORK
PLUMBING WORK
CARPENTRY WORK
WALL PAINTING SERVICES
WALLPAPER FIXING
CURTAIN FIXING
• INSTALLATIONS
MARBLE FLOORING
TILE FLOORING
PAINTING SERVICES
WALL PAINTING SERVICES
WALLPAPER FIXING
• Contact Us:-
2 Arjan Dubai – United Arab Emirate
For more details about our services you can call us,
+971 56 100 4127
+971 4 568 9636

A YouTube tutorial video to go through the code

Hello, great repo!
I am currently new to Nuxt 3. As such, it'd be great if there were a YouTube tutorial video explaining the code or a video to build this project step by step from the start.

Cloudflare config changed?

Hi, just wondering if the cloudflare config has been changed recently?

I ask because I routinely browse over Tor and am suddenly faced with cloudflare's 'attention required!' page:

cloudflare

This question is available on Nuxt.js community (#c9)

Feeds don't load after deploying SPA

For some reason, it appears the feeds aren't loading after deploying to Cloudflare pages in SPA mode. Locally everything works fine.

I'm able to reproduce if I change lazy -> false here:

app.use(() => import('./feeds'), { lazy: true })

Anyone know what could be causing this or how to resolve?

loading is not synced with data

Hello,
I was using (vue-hackernews-2.0)(https://github.com/vuejs/vue-hackernews-2.0) and when I navigate to different pages using more > and < prev , the progress bar is finished correctly when the data fetching is finished.
But here, the loading only keeps synced at the first load, and then always finishes before the data is actually finished fetching.

This question is available on Nuxt.js community (#c2)

Natural Remedies to Relieve Dry Eyes

Natural Remedies to Relieve Dry Eyes

Dry eye or dry eye disorder happens when your eyes do not produce sufficient rips for lubrication. In some cases, dry eyes are so major that It considerably affects your life, making it more difficult to be productive at the office and also at home.

Altering your way of living as well as looking for straightforward natural remedies can make a difference in treating dry eyes. However, it is encouraged that you see an eye treatment practitioner if the problem of your vision maintains worsening.

Usual Symptoms of Dry Eye

Usual signs and symptoms of dry eye disorder consist of:

Blurred vision
Discharge
Eye Fatigue
Really feeling that there's something in the eye.
Heaviness in eyelids
Light level of sensitivity
Pain
Redness
Scratchiness
Reasons For Dry Eyes
Medications

Causes of Dry Eyes
Lack of splits in the eyes that can oil the eyeballs triggers dry eye disorder. Many clinical problems, the surrounding setting, and specific medications can result in completely dry eyes.

Some of the medications that can trigger completely dry eyes are:

Antihistamines
Acne Medication
Antidepressants and antipsychotic
Hormone therapy as well as oral contraceptives
Drugs to reduced high blood pressure
Nasal decongestants
Medications for Parkinson's condition
Danger Elements of Dry Eyes
Females are more probable to obtain completely dry eyes than males.
People over 65 years of age
Contact Lenses
Low blink price due to extended screen time
Smoking cigarettes
Vitamin Deficiencies
Persistent diseases like diabetes mellitus
Autoimmune conditions like lupus
Ecological extremes

All-Natural Remedies for Dry Eyes
Make certain that your eye condition is dry eye as well as comprehend the underlying cause of it by an eye assessment. Getting rid of the threat variables of completely dry eyes can aid in treating this problem. However, the adhering to natural remedy provide you instant relief as well.[1]

Wash Your Eyelids as well as Eyelashes with Drenched Cotton Rounds
Dip tiny balls of cotton in lukewarm water and tidy your eyelids and eyelashes, swabbing drenched cotton rounds on them. Pay special attention to the area where you apply face lotions or various other cosmetics. You can add a small amount of salt to the water as well for better outcomes.

Keep in mind to Blink
The light from the displays of digital devices like mobile phones and laptop computers can cause inflammation in the eyes as they lower the blink price. Inadequate as well as inadequate blinking (when your top eyelid does not cover the whole corneal location) can prevent the layer of liquids from lubricating and also nurturing the eyes. This layer of lipids can vaporize if you don't blink regularly. Offer your eyes a blinking break from staring at the display and also close them for 20-30 seconds every 15-20 mins.

Give Your Eyes Some Rest
Give your eyes rest by relaxing from staring at displays and look away at something put at a distance of 20 meters or more for 20 secs. Also, relax and close your eyes for 20 seconds every now and then throughout the job.

Fats like Omega-3 boost the working of the gland that creates rips to reduce the signs of the completely dry eye normally. The omega-3 fatty acid can be discovered in:

Chia Seeds
Fish oil supplements
Fatty fish such as tuna and also salmon
Flax seeds
Soybean as well as Hand oil
Walnuts

Consume Much More Vitamins A, B12, as well as D
Vitamin A, B12, and also D are essential for the eye, yet the absence of vitamin D can cause a dry eye. Vitamin D is typically found in:

Fatty fish
Beef liver
Milk items
Soy milk
Egg yolks
Orange juice
Cereals
Cheese

Consume Less Alcohol
Way too much alcohol consumption can bring about dehydration that can damage your eyes. Studies have actually located a connection between completely dry eye syndrome as well as alcohol usage. Lower alcohol intake or remove it to find out if it's contributing to dry eyes.

Quit Cigarette smoking
Cigarettes have hundreds of chemicals that can cause irritability as well as completely dry eyes. Cigarette smoking enhances the threat of completely dry eyes as it changes the structure of the liquid in the eyes, which can cause dry eye signs. Additionally, attempt to make certain that you verify the lens rate in Pakistan before you purchase any type of call lenses.

If you smoke, take into consideration stopping. If you do not smoke, make use of protective wear to shield your eyes from hefty cigarette smoking.

Keep Hydrated
Drinking more water benefits your eye's health as it aids in lubricating your eyes by producing extra rips. Additionally, water aids in concentrating much better.

If you are not properly moistened, your eyes will not have the ability to clear out particles or blink conveniently.

For your eye and also general health and wellness, you need to drink 8 to 10 glasses of water on a daily basis.

Sleep Much more
The absence of rest can reduce the lubrication in your eyes which can create numerous eye issues, consisting of completely dry eyes. A regular person needs 7-8 hrs of night's sleep. If you feel problem in sleeping, you should attempt the complying with ideas:

Develop a comfortable setting for sleep, quiet and also dark.
Adjustment of the daytime routine. As an example, awaken earlier as well as an exercise in the early morning.
Establish a going to bed routine. Go to sleep at a specific time every night.
Use prescribed Eye drops.

Prevent using eye goes down that contain chemicals as they can cause irritation, especially if you utilize them often, 3-4 times a day. Eye drops for red eyes may cause much more irritability. As a result, sure that the decreases you are making use of are particularly for dry eyes. As well as ask your physician for prescription lenses, so do not use any type of incorrect call lenses. If your eye treatment specialist has actually suggested some specific eye drops, you need to make use of nothing else decreases except the prescribed ones. for more detail read this article:[https://lenspk.com/product-category/bella-one-day/]

Begineer

I am a begineer in coding, I would like to be as Security Professional - With what language & platform can i proceed & I am quck learner. Any suggestion pls let me know

This question is available on Nuxt community (#c14)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @nuxt/devtools ^1.0.5
  • @nuxt/eslint-config ^0.1.1
  • @types/node ^18.16.0
  • eslint ^8.39.0
  • nuxt ^3.4.2
  • postcss-nesting ^11.2.2
  • typescript ^5.0.4
  • pnpm 8.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

Minergate Review

Minergate reviews are at the highest of all searches today; individuals sincerely wish to know a lot of regarding the minergate cloud mining. Therefore nowadays here at Crypto Exchanges information we going to share a complete in-depth Minergate review with you and can make sure to hide all of your queries like what's minergate, is it safe, how to use minergate, how will it work, minergate fees etc, therefore, keep reading this guide till the terribly finish.

What is MinerGate?
MinerGate is a mining platform, and a GUI pool started in March 2014 by a group of mining enthusiasts. The mining user interface is easily downloadable and helps individuals to immediately begin mining Bitcoin, Ethereum, or Monero, among other cryptocurrencies.

Though MinerGate is fast to access and simple to use, you would like to appreciate that complicated algorithms are operating within the background. With simply a few of clicks, MinerGate exploits the optimal capability of your hardware based on how much you have dedicated to it.

How to Register for Minergate?
Moving ahead with this minergate review let's see how we can register for it.

It's been coming across concerning the customer complaints regarding that they are facing difficulties while logging in.

And it's been seen that this issue has been raised as a result of the minergate verification code that's the users do not have a verification code with them.

While Registering on the account it should be noticed that, before the users can log in minergate account, they must have been verified their emails. And to register the user should give their email address and a strong password.

After this, the user is going to receive an email having a link with it.

Click on its link so you verify and might activate your account.

One should go ahead to enable the 2FA security feature. Whereas this is} optional, but the users are powerfully recommended to change the 2FA security so the safety of the user's account can be increased.

The user will be required to use Google authentication so they'll generate a six-digit code that's to be used for login.

It's been observed that the users who don't select enabling 2FA security those users expertise the trouble in logging into their account.

This could mean that the user {will be|are going to be|are} going to would like the verification code if the user can log in into their account.

Which means that it's having an obligation of enabling 2FA security to avoid such troubles in logging in.

Conclusion
We hope you've learned a thing or 2 for this MinerGate review regarding the practicality of the platform; the mining sector is still a murky one. It is, therefore, necessary to do due diligence a few platforms before joining it. The same applies to MinerGate; this review isn't enough, ensure that you check out as several reviews as doable to be able to pick up a consistent narrative since in most cases, they're forever true.

This question is available on Nuxt community (#c20)

nuxt 1.0 compatibllity

Seems this doesn't work with latest Nuxt.
Would be great to update as this is a great demo

This bug report is available on Nuxt.js community (#c4)

Failed withh refresh page

When i navigate en in the portal to comments by example https://hn.nuxtjs.org/item/15029096 return a error like that

Nuxt.js Error:

RangeError: Maximum call stack size exceeded
    at VueComponent.Component.options.data (server-bundle.js:258:37)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)
    at VueComponent.Component.options.data (server-bundle.js:259:30)```

<!--cmty--><!--cmty_prevent_hook-->
<div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/hackernews/issues/c7">#c7</a>)</em></sub></div>

Migrate Datastax Enterprise Cassandra to Apache Cassandra

We have currently using DSE 4.8 and 5.12. we want to migrate to apache cassandra .since we don't use spark or search thought save some bucks moving to apache. can this be achieved without down time. i see sstableloader works other way. can any one share me the steps to follow to migrate from dse to apache cassandra. something like this from dse to apache.
To know More Vist : Apache Cassandra

This question is available on Nuxt community (#c18)

Feature request for Testing Example

Nuxt.Js lacks a good example of how to do testing on a complex site.

Hackernews clone would be a good example by mocking this.$axios in store.
And mocking the store's state.

This question is available on Nuxt community (#c12)

Duplicate initial request

When loading the default news initial page the results are server-rendered but the request to fetch the feed is probably performed twice, once on the server and once on the client.

image

This is probably due to the usage of $fetch without a key.

() => $fetch('/api/hn/feeds', { params: { feed, page } }),

Using $fetch with some key or the useFetch composable would probably solve this.

Confused

Hello,

If I may ask the following... I am kind of a newbie and I have a hard time understanding how this app works.

I also use Vercel and I am interested in making API calls / fetching data. Also I use NuxtJS (universal) of course.

My aim is this:
< With SWR, components will get a stream of data updates constantly and automatically.
And the UI will be always fast and reactive. >

First I thought you used this SWR plugin built by Vercel... SWR - Vercel - but that is a React Hook and I do not find this plugin in the package.json and not in the plugin dir.

Then I thought that you used "The Fetch Hook"... The Fetch Hook - I guessed that is also not the one.

Then I found "OhMyFetch"... OhMyFetch - ...

Well, I am confused, so sorry.

So how does it work to get a stream of data updates constantly and automatically with NuxtJS and Vercel?
"The Fetch Hook" is called on server-side apparently also. But I do not find a big JSON file with all compiled articles you pulled in. So I am double confused. Is the fetched data only available client-side (so no JSON file, no database, nothing)?

I am sorry again for the silly questions, but if you could clarify then that would be very nice of you. Thank you on forehand.

Next deployment?

Hi, is it possibleto get a deployment of the latest code?
Asking because da3acab was merged a while ago but comment counts are still broken on the live site.
Thanks

This question is available on Nuxt community (#c11)

could not run

npm run dev

i got this error:

nuxt dev

sh: nuxt: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dev: nuxt dev
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/XXX/.npm/_logs/2019-08-23T18_33_02_293Z-debug.log

This question is available on Nuxt community (#c22)

Nuxt project build issue

I try to nuxt universal mode project with axios,then i set some changes in hello world project and i build the project successfilly also.uising the command
1
Then i will start the builed project using the command
2
my package.json file is
package.json.txt
Nuxt config file
nuxt.config.js.txt
I have the issue in run Time.in browser my actual code will shown in that URL
3
Then i inspect that page.All contents are covered with

 tag default.
4
All other actions are working correctly.what i do. Pls Help me.

This question is available on Nuxt community (#c21)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.