next-e-commerce | commerce website example with NextJS that I made in 1 week | Authentication library
kandi X-RAY | next-e-commerce Summary
kandi X-RAY | next-e-commerce Summary
I saw a UI design on Dribbble by Anton Mikhaltsov. And I wanted to code this design. So I decided to make it a full working website with NextJS but in just 1 week as challenge myself. Some issues are still there but I will check out them later.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update user information
- A function that sets the loaded state .
- Updates the password of the user .
- Fetches data from the Firestore and then fetch the orders
- A generic icon badge .
- register new database
- Adds a user to the user
- Remove a user from the user
- Draw a heart icon .
- The application provider .
next-e-commerce Key Features
next-e-commerce Examples and Code Snippets
Community Discussions
Trending Discussions on next-e-commerce
QUESTION
Here is my situation. I am trying to set up a Next.js project with an Express.js back-end. I did set up the back-end as a regular one not as a custom server according to Next.js documentation. So I am not sure if I am already making a mistake by setting up the back-end as a regular one. I am trying to fetch data from a back-end endpoint http://localhost:3500/api/v1/list
using axios and it works well. But when I am trying to implement React-Query on the first load I am getting the right data from the back-end but when it is trying to re-fetch for some reason it is hitting the wrong end-point http://localhost:3600/api/v1/list
and getting the 404 Not Found error. It looks like it is switching the port from 3500
to 3600
which is a front-end port. Here you will find the link to the repository and here is the code. Let me know if I am doing something wrong,
page/sell.js
...ANSWER
Answered 2021-Feb-20 at 03:11if you get 404
i think that you reached out the server but no API's name matched
so try to test the API first on postman or alike
however if console.log('HOST: ', process.env.HOST);
prints http://localhost:3600
then do the following
in your .env
file try to rename PORT
TO SERVER_PORT
or whatever
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install next-e-commerce
You need to create a firebase project
Clone the repo and change the directory
Install NPM packages
Create your .env.local file on root folder(next-e-commerce) with this content. Put your firebase keys.
Run in development mode
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page