#I tried Running localhost server

1 messages · Page 1 of 1 (latest)

grave iris
#
  • 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 )
sleek yarrow
#

Do you have api running?

#

and MongoDB and Redis servers as well?

grave iris
#

No , Can you guide me how to do that?

#

How can I do that with docker?

#

@sleek yarrow

rugged pond
#

Just run npm run start
Jarvis CLI will guide you though the process

grave iris
#

On npm run start -> selected development environment setup ( showing above error )

rugged pond
#

Instead of selecting development environment, select the first option i.e local run

grave iris
#

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

rugged pond
#

Try running npm run setup: project maybe there are some missing packages

#

*setup:project

grave iris
#

okk

lethal crystalBOT
#

@grave iris, you just advanced to level 1!

grave iris
#

@rugged pond 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

sleek yarrow
#

honestly I prefer to run them seperately

#

npm run start:api and npm run start:web

grave iris
#

npm run start:api , npm run start:web and npm run start:worker these are in different terminals

#

even without backend the npm run start:web command should display login page

sleek yarrow
#

I suspect memory leak but not sure

grave iris
sleek yarrow
#

this is common issue

#

I will give you command to paste soon

grave iris
#

ok thanks, I will be waiting

sleek yarrow
#

I see you are using windows, so try something like this: ```powershell
$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.

grave iris
#

thanks a lot

lethal crystalBOT
#

@grave iris, you just advanced to level 2!

grave iris
#

do I have to reload website every time to reflect changes to my localhost server?

sleek yarrow
#

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

grave iris
#

changes in vscode aren't directly reflecting to website

grave iris
#

changes made in my vscode took 10-15sec to reflect

sleek yarrow
#

for example if you are working on shared library there is ```sh
npm run start:shared

#

and as far I remember it watches changes

grave iris
#

how do i know where I am working

#

i am working in email-editor folder

rugged pond
rugged pond
#

app/web

grave iris
#

ok so for web folder what is command to wathc? @rugged pond

lethal crystalBOT
#

@grave iris, you just advanced to level 3!

steep glade
#

@grave iris web uses hot reloading, and it updates automatically on change

#

What is your system configuration like RAM Size / OS / Processor?

grave iris
#

but it takes upto 10 sec to reflect changes, Its hard to code that way

grave iris
#

8gb ram, AMD Ryzen 5 5600H , Graphic card GTX 1650

steep glade
#

if possible close unused applications to save system resources

rugged pond
#

You can see all the commands in the package.json in root dir

grave iris
grave iris
#

npm run setup:project not working , My localhost server was not starting so I though to setup again but I am getting this message

#

I have latest version of pnpm ,

#

@sleek yarrow @steep glade

grave iris
#

Issue is Solved...

restive hamlet
#

@grave iris 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?

grave iris
steep glade
#

@grave iris
Thanks

grave iris
steep glade
#

We need to add this in our docs

grave iris
copper linden
#

I am getting "something already running on port 4200 " while running npm start:web

grave iris
copper linden
#

aslo facing network error while login

#

@grave iris are you there

grave iris
#

checkout this

#

go for solution 2

copper linden
#

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

lethal crystalBOT
#

@copper linden, you just advanced to level 1!

copper linden
#

@steep glade is that any way to do this

sleek yarrow
#

they cannot share their SendGrid credentials with community

copper linden
#

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.

#

@sleek yarrow

copper linden
#

and i am getting unuthorized error while checking

copper linden
#

@sleek yarrow where can i get tennent id

steep glade
#

@copper linden

Novu Email and SMS providers will not work in local machine. These are for only cloud providers