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 )
59 Replies
Do you have api running?
and MongoDB and Redis servers as well?
No , Can you guide me how to do that?
How can I do that with docker?
@madd
Just run
npm run start
Jarvis CLI will guide you though the processOn npm run start -> selected development environment setup ( showing above error )
Instead of selecting development environment, select the first option i.e local run
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 errorTry running
npm run setup: project
maybe there are some missing packages
*setup:projectokk
@Sudhanshu, you just advanced to level 1!
@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
honestly I prefer to run them seperately
npm run start:api
and npm run start:web
npm run start:api , npm run start:web and npm run start:worker
these are in different terminalseven without backend the
npm run start:web
command should display login pagecan you show what is printed to console above
I suspect memory leak but not sure
this is common issue
I will give you command to paste soon
ok thanks, I will be waiting
I see you are using windows, so try something like this:
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.
thanks a lot
@Sudhanshu, you just advanced to level 2!
do I have to reload website every time to reflect changes to my localhost server?
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 changechanges 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
depends where you are making changes
for example if you are working on
shared
library there is
and as far I remember it watches changeshow do i know where I am working
i am working in email-editor folder
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
ok so for web folder what is command to wathc? @BeardyWeird
@Sudhanshu, you just advanced to level 3!
@Sudhanshu web uses hot reloading, and it updates automatically on change
What is your system configuration like RAM Size / OS / Processor?
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
if possible close unused applications to save system resources
npm run start:web
You can see all the commands in the package.json in root dirokay if that's the only option
npm run setup:project
not working , My localhost server was not starting so I though to setup again but I am getting this messageI have latest version of pnpm ,
@madd @Pawan Jain
Issue is Solved...
@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?
Okay I will do it soon
@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...
@hackur_here
Thanks
I think you should pin this issue otherwise how do new contributors find that.
We need to add this in our docs
Can I do that? It would also help me to complete my hacktoberfest Pull request.
I am getting "something already running on port 4200 " while running npm start:web
then check your browser at localhost:4200
aslo facing network error while login
@Sudhanshu are you there
you need to setup mongodb and redis
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...
checkout this
go for solution 2
Yes,i got solution.but not this one.any way thanks for your help
its showing 0 mails per month.how we can use free one
@Sathish, you just advanced to level 1!
@Pawan Jain is that any way to do this
Novu for their email provider uses SendGrid under the hood as far I remember
they cannot share their SendGrid credentials with community
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
and i am getting unuthorized error while checking
@madd where can i get tennent id
@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