-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation problem #3
Comments
Hello and thank you! |
Glad to receive your reply. i'm not good at programming,so I have some strange problems.
After, run But there is a new warnings:“1 vulnerability required manual review and could not be updated.”
My .env file is filled with the same content as the picture. I don't know if it is correct? Thank you again, author!
and how could I keep running both the backend and the front end?
image(http://ip:3000) |
@Sandermoen Your project is awesome. If there is a more detailed installation tutorial, the project will be more popular. Mastodon is a good example. It has a very detailed installation tutorial. |
Looking forward to your reply. |
1. The first error you're getting where it tells you there's a high severity vulnerability is actually a problem with react-scripts (facebook/create-react-app#9469), it's an outdated dependency that they need to update so that one you do not need to worry too much about. 2. The most likely problem with your .env file is that you need to remove the // before the information, here's an example of how it should look MONGO_URI=mongodb://localhost:27017/instaclone
JWT_SECRET=j2390jf09kjsalkj4r93
CLOUDINARY_API_KEY=fakeCloudinaryApiKey
CLOUDINARY_API_SECRET=fakeClouinaryApiSecret
CLOUDINARY_CLOUD_NAME=fakeCloudinaryCloudName
SMTP_HOST=mail.example.com
SMTP_PORT=587
EMAIL_USERNAME=example@example.com
EMAIL_PASSWORD=Password
HOME_URL=http://localhost:3000
GITHUB_CLIENT_ID=fakeGithubClientId
GITHUB_CLIENT_SECRET=fakeGithubClientSecret The // is only there to illustrate that it's commented out and that you need to fill in the information. 3. The warning you are getting when running npm run dev is actually partially my fault for not including nodemon in the dependencies in package.json. All you should have to do to remedy this issue is to simply run npm install -g nodemon. 4. The npm run dev command runs both the backend and frontend using concurrently. 5. To add a domain to your server all you have to do is purchase the domain of your liking from a website like Namecheap. You would then have to configure your domain to point to your server's public ip address. I'm sure you can find some good tutorials online if you search around. If my explaining wasn't good enough or you're still struggling, please let me know! |
Thanks I'm glad you like it! |
Thanks for taking the time to contribute an answer. It’s because of helpful peers like yourself that we’re able to learn together Your answer solved my first 3 questions. 1. I am not sure if my Now my
my root directory is
2. There is “Invalid Host Header” error? I have configured my domain to point to your server's public ip address.
visit the site http://www.heidongwang.top:3000 but visit the site http://ip:3000 -->Jump to the login page. 3. http://ip:3000-->https://www.heidongwang.top How to add ssl certificate? and change the port to 443 ? 4. When I close the command client(xshell), the website cannot run -->How to keep it running when the client is closed 5. Other questions? Click to enlarge the picture |
1. I am not sure if my .env file is correct? 2. There is “Invalid Host Header” error? 3. How to add ssl certificate? and change the port to 443? 4. When I close the command client(xshell), the website cannot run -->How to keep it running when the client is closed 5. Other questions? // eslint-disable-next-line react-hooks/exhaustive-deps The ip you see is the local ip the project is being served to. |
@Sandermoen I am very satisfied with your reply. Thank you. |
Hello @Sandermoen please help as soon as possible |
have you found any solution on it? |
Hey!
Try to clear your browsers local storage and see if that works :)
…On Thu, Jun 9, 2022, 07:28 webkokri ***@***.***> wrote:
Hello @Sandermoen <https://github.com/Sandermoen> Your project is
superb...but the screen mentioned is what i am getting even though it is
connected to socket properly [image: Screenshot from 2020-09-25 11-18-31]
<https://user-images.githubusercontent.com/68326989/94231187-1fc18000-ff21-11ea-9fc7-4cf59c74eaa3.png> [image:
Screenshot from 2020-09-25 11-09-05]
<https://user-images.githubusercontent.com/68326989/94231193-22bc7080-ff21-11ea-8a5a-867cbffa9283.png>
please help as soon as possible
have you found any solution on it?
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM3Y7URBPTYZLL5GSKGO2ELVOF6HTANCNFSM4P36QZQQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hey Sandermoen, you have done a great job. I'm facing a critical issue on installing the software on ubuntu 20 under the nginx. It's working perfectly on the localhost, but whenever installing it to the web server, facing the token=undefined. |
Im unsure why that's happening, I think you might have to enable websocket
connections in nginx.conf
…On Fri, Jun 10, 2022, 11:21 webkokri ***@***.***> wrote:
Hey Sandermoen, you have done a great job. I'm facing a critical issue on
installing the software on ubuntu 20 under the nginx. It's working
perfectly on the localhost, but whenever installing it to the web server,
facing the token=undefined.
Let me share the screenshots.
[image: un]
<https://user-images.githubusercontent.com/59289573/173034462-8bef7dd8-638c-4e82-baeb-b7c9ce7559a5.png>
[image: un3]
<https://user-images.githubusercontent.com/59289573/173034474-95db9191-ba38-4cbd-84f8-291461717105.png>
[image: un2]
<https://user-images.githubusercontent.com/59289573/173034479-fea9a12b-c9f9-4737-974e-f8b198eef1a2.png>
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM3Y7UTWKPBJLHJRAHZ5GBDVOMCH7ANCNFSM4P36QZQQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have tried with websocket but no result. I'm a bit surprised to see if I command it "RUN NPM DEV" the token is being generated even on the same server, but whenever I'm trying with "RUN NPM BUILD" it's giving the error specified above. What could be the reason? |
@Sandermoen I found the issues. Could you please help me out or try it on your behalf? |
The project is set up in a way where you have to use the express server to
serve the frontend, if you don't they won't connect since they'd then be
running on a completely different ip/port that the client won't recognize.
What you have to do is make sure you run *npm run build* in the
*client *directory,
then make sure that the *NODE_ENV *environment variable is set to
*production* for the express server to serve the built frontend.
You'll then be able to access both the frontend and the backend on the same
ip and port by running npm run index.js in the root directory.
As you can probably tell this setup is really unfortunate for scaling and
could/should be changed if you have a bunch of users.
|
Great project, I like it very much. Could you write a more detailed installation tutorial or video tutorial?
The text was updated successfully, but these errors were encountered: