N
Novu14mo ago
Sudhanshu

I tried Running localhost server

- I tried running localhost server using npm run start:web - server is running fine and first screen is login screen but I am unable to login ( showing network error )
No description
59 Replies
mdd
mdd14mo ago
Do you have api running? and MongoDB and Redis servers as well?
Sudhanshu
SudhanshuOP14mo ago
No , Can you guide me how to do that? How can I do that with docker? @madd
BeardyWeird
BeardyWeird14mo ago
Just run npm run start Jarvis CLI will guide you though the process
Sudhanshu
SudhanshuOP14mo ago
On npm run start -> selected development environment setup ( showing above error )
No description
BeardyWeird
BeardyWeird14mo ago
Instead of selecting development environment, select the first option i.e local run
Sudhanshu
SudhanshuOP14mo ago
I successfully solved this issue and now my local server is running on 4200, I was able to login but after some time I refreshed page because changes in vs code was not reflecting on localhost server but on refreshing server close and when I am again doing npm run start:web it is showing error
No description
BeardyWeird
BeardyWeird14mo ago
Try running npm run setup: project maybe there are some missing packages *setup:project
Sudhanshu
SudhanshuOP14mo ago
okk
Novu_Bot
Novu_Bot14mo ago
@Sudhanshu, you just advanced to level 1!
Sudhanshu
SudhanshuOP14mo ago
@BeardyWeird I tried but still not working I don't know what happened, The server was running perfectly fine and I just refreshed the page and now the server not starting again
mdd
mdd14mo ago
honestly I prefer to run them seperately npm run start:api and npm run start:web
Sudhanshu
SudhanshuOP14mo ago
npm run start:api , npm run start:web and npm run start:worker these are in different terminals
Sudhanshu
SudhanshuOP14mo ago
No description
Sudhanshu
SudhanshuOP14mo ago
even without backend the npm run start:web command should display login page
mdd
mdd14mo ago
can you show what is printed to console above I suspect memory leak but not sure
Sudhanshu
SudhanshuOP14mo ago
No description
mdd
mdd14mo ago
this is common issue I will give you command to paste soon
Sudhanshu
SudhanshuOP14mo ago
ok thanks, I will be waiting
mdd
mdd14mo ago
I see you are using windows, so try something like this:
$Env:NODE_OPTIONS='--max-old-space-size=8192'
$Env:NODE_OPTIONS='--max-old-space-size=8192'
I assume you have at least 8 GB of memory but 4 GB max old space should work too You will need to type it every time you open terminal. I don't remember how to "persist" env variable on Windows, but it's possible.
Sudhanshu
SudhanshuOP14mo ago
thanks a lot
Novu_Bot
Novu_Bot14mo ago
@Sudhanshu, you just advanced to level 2!
Sudhanshu
SudhanshuOP14mo ago
do I have to reload website every time to reflect changes to my localhost server?
mdd
mdd14mo ago
it should reload automatically if you change something in apps/web but in case of some libraries inside libs you may need to rebuild that library and then web's server should detect change
Sudhanshu
SudhanshuOP14mo ago
changes in vscode aren't directly reflecting to website can you guide me how to do that changes made in my vscode took 10-15sec to reflect
mdd
mdd14mo ago
depends where you are making changes for example if you are working on shared library there is
npm run start:shared
npm run start:shared
and as far I remember it watches changes
Sudhanshu
SudhanshuOP14mo ago
how do i know where I am working i am working in email-editor folder
BeardyWeird
BeardyWeird14mo ago
Yes its using nodemon so if has hot reload You can check that using the path as novu is a monorepo So there's folder for every service Like email editor is in the web folder app/web
Sudhanshu
SudhanshuOP14mo ago
ok so for web folder what is command to wathc? @BeardyWeird
Novu_Bot
Novu_Bot14mo ago
@Sudhanshu, you just advanced to level 3!
Pawan Jain
Pawan Jain14mo ago
@Sudhanshu web uses hot reloading, and it updates automatically on change What is your system configuration like RAM Size / OS / Processor?
Sudhanshu
SudhanshuOP14mo ago
but it takes upto 10 sec to reflect changes, Its hard to code that way wait 8gb ram, AMD Ryzen 5 5600H , Graphic card GTX 1650
Pawan Jain
Pawan Jain14mo ago
if possible close unused applications to save system resources
BeardyWeird
BeardyWeird14mo ago
npm run start:web You can see all the commands in the package.json in root dir
Sudhanshu
SudhanshuOP14mo ago
okay if that's the only option
Sudhanshu
SudhanshuOP14mo ago
npm run setup:project not working , My localhost server was not starting so I though to setup again but I am getting this message
No description
Sudhanshu
SudhanshuOP14mo ago
I have latest version of pnpm ,
No description
Sudhanshu
SudhanshuOP14mo ago
@madd @Pawan Jain Issue is Solved...
Prosper
Prosper14mo ago
@Sudhanshu Are you willing to open an issue with a common FAQ and how you solved it to help other windows users trying to set up novu for the first time?
Sudhanshu
SudhanshuOP14mo ago
Okay I will do it soon
Sudhanshu
SudhanshuOP14mo ago
@unicodeveloper Hey, Sorry for the delay, I opened the issue so please checkout and tell me if any changes required -> https://github.com/novuhq/novu/issues/4630
GitHub
Project Setup: Clearing Most Common asked doubts ( For Window User...
How to Setup Novu for the First Time? Refer to this Run Novu in Local Machine. 1. Unable to Login ? Mostly it happens if you did not set up the MongoDB and Redis. Solution 1: Just run npm run start...
Pawan Jain
Pawan Jain14mo ago
@hackur_here Thanks
Sudhanshu
SudhanshuOP14mo ago
I think you should pin this issue otherwise how do new contributors find that.
Pawan Jain
Pawan Jain14mo ago
We need to add this in our docs
Sudhanshu
SudhanshuOP14mo ago
Can I do that? It would also help me to complete my hacktoberfest Pull request.
Sathish
Sathish14mo ago
I am getting "something already running on port 4200 " while running npm start:web
Sudhanshu
SudhanshuOP14mo ago
then check your browser at localhost:4200
Sathish
Sathish14mo ago
aslo facing network error while login @Sudhanshu are you there
Sudhanshu
SudhanshuOP14mo ago
you need to setup mongodb and redis
Sudhanshu
SudhanshuOP14mo ago
GitHub
Project Setup: Clearing Most Common asked doubts ( For Window User...
How to Setup Novu for the First Time? Refer to this Run Novu in Local Machine. 1. Unable to Login ? Mostly it happens if you did not set up the MongoDB and Redis. Solution 1: Just run npm run start...
Sudhanshu
SudhanshuOP14mo ago
checkout this go for solution 2
Sathish
Sathish14mo ago
Yes,i got solution.but not this one.any way thanks for your help
Sathish
Sathish14mo ago
its showing 0 mails per month.how we can use free one
No description
Novu_Bot
Novu_Bot14mo ago
@Sathish, you just advanced to level 1!
Sathish
Sathish14mo ago
@Pawan Jain is that any way to do this
mdd
mdd14mo ago
Novu for their email provider uses SendGrid under the hood as far I remember they cannot share their SendGrid credentials with community
Sathish
Sathish14mo ago
How can I use please guide me I am running locally.please let me know how can I use free mails and sms in local deployment. @madd
Sathish
Sathish14mo ago
and i am getting unuthorized error while checking
No description
Sathish
Sathish14mo ago
@madd where can i get tennent id
Pawan Jain
Pawan Jain14mo ago
@Sathish Novu Email and SMS providers will not work in local machine. These are for only cloud providers Please read carefully the error message You are using invalid api key
Want results from more Discord servers?
Add your server