Search
Get Started
N
Novu
•
3y ago
Suryansh
help in setup
I am new to Novu and need help in setting up the project locally
.
Novu
Join
Open Source Notification Infrastructure Community by Novu
4,182
Members
View on Discord
Was this page helpful?
Yes
No
P
Pawan Jain
•
10/5/23, 9:09 AM
@Suryansh
Please follow this doc
https://docs.novu.co/community/run-in-local-machine
S
Suryansh
OP
•
10/5/23, 10:46 AM
I don
't have redis in my windows system
, and it has the installation guide for macOS only
S
Suryansh
I don't have redis in my windows system, and it has the installation guide for m...
N
ninja7
•
10/5/23, 11:50 AM
no worries
, I will guide you to your successful setting up of project
N
ninja7
•
10/5/23, 11:50 AM
which OS are you using
?
S
Suryansh
OP
•
10/5/23, 11:51 AM
Windows
N
ninja7
•
10/5/23, 11:52 AM
okay you got docker desktop
?
S
Suryansh
OP
•
10/5/23, 11:52 AM
Yes
N
Novu_Bot
•
10/5/23, 11:52 AM
@Suryansh
, you just advanced to level 1
!
N
ninja7
•
10/5/23, 11:52 AM
alright
, let it run in the background
, now open a terminal at the root folder of Novu
N
ninja7
•
10/5/23, 11:53 AM
type in following command and press enter
S
Suryansh
OP
•
10/5/23, 12:03 PM
Done
S
Suryansh
OP
•
10/5/23, 12:04 PM
Well it shows docker isn
't running
S
Suryansh
Well it shows docker isn't running
N
ninja7
•
10/5/23, 12:05 PM
right
, because you haven
't launched it yet
After you run above command
, run
:
N
Novu_Bot
•
10/5/23, 12:05 PM
@ninja7
, you just advanced to level 5
!
S
Suryansh
OP
•
10/5/23, 12:09 PM
it shows command not found
N
ninja7
•
10/5/23, 12:10 PM
screenshot
S
Suryansh
OP
•
10/5/23, 12:10 PM
N
ninja7
•
10/5/23, 12:18 PM
you need to install it first it seems
N
ninja7
right, because you haven't launched it yet After you run above command, run: ```...
S
Suryansh
OP
•
10/5/23, 1:48 PM
Its running now
S
Suryansh
Its running now
N
ninja7
•
10/5/23, 1:50 PM
cool
, now open 3 terminals and run
[npm run
s
t
a
r
t
:api
, npm run
s
t
a
r
t
:worker
, npm run
s
t
a
r
t
:web
]
, these should be running in parallel
N
ninja7
•
10/5/23, 1:50 PM
but it actually depends on your usecase
, whatever it is you are trying to attempt
N
ninja7
•
10/5/23, 1:51 PM
N
ninja7
•
10/5/23, 1:51 PM
in vscode
, use this
+ icon to create more terminals
S
Suryansh
OP
•
10/5/23, 1:54 PM
should running the complete application in ubuntu or anything would be fine
?
S
Suryansh
should running the complete application in ubuntu or anything would be fine?
N
ninja7
•
10/5/23, 1:54 PM
any
N
ninja7
•
10/5/23, 1:55 PM
I missed 1 thing
, before you run above 3 command
, you need to install the dependencies and stuff
N
ninja7
•
10/5/23, 1:55 PM
its npm run
s
e
t
u
p
:project
S
Suryansh
OP
•
10/5/23, 1:55 PM
env variables setup has to be done i think
S
Suryansh
env variables setup has to be done i think
N
ninja7
•
10/5/23, 1:56 PM
sure
, if your use case demands for it
N
ninja7
its npm run setup:project
S
Suryansh
OP
•
10/5/23, 1:59 PM
apart from this and the docker one
, 3 more terminals i have to run
?
S
Suryansh
apart from this and the docker one, 3 more terminals i have to run?
N
ninja7
•
10/5/23, 2:05 PM
right
N
ninja7
I missed 1 thing, before you run above 3 command, you need to install the depend...
N
ninja7
•
10/5/23, 2:05 PM
first this one
N
ninja7
first this one
S
Suryansh
OP
•
10/5/23, 2:08 PM
yeah this one i did
N
Novu_Bot
•
10/5/23, 2:08 PM
@Suryansh
, you just advanced to level 2
!
S
Suryansh
yeah this one i did
N
ninja7
•
10/5/23, 2:12 PM
it should be working
S
Suryansh
OP
•
10/5/23, 2:13 PM
i did npm run start
S
Suryansh
i did npm run start
N
ninja7
•
10/5/23, 2:14 PM
thats great
, let me know how it goes
S
Suryansh
OP
•
10/5/23, 2:16 PM
{
"message
"
:
"Cannot GET
/
"
,
"error
"
:
"Not Found
"
,
"statusCode
"
:404
}
Response from running api at localhost 3000
S
Suryansh
OP
•
10/5/23, 2:17 PM
localhost 4200
- webite isn
't loading
localhost 3000
/3004 not showing any response
localhost 3002 gives output of Hello World
!
N
ninja7
•
10/5/23, 2:22 PM
are all 3 commands on the run
?
@Suryansh
S
Suryansh
localhost 4200 - webite isn't loading localhost 3000/3004 not showing any respon...
S
Suryansh
OP
•
10/5/23, 2:23 PM
this is the output of npm run start
N
ninja7
•
10/5/23, 2:24 PM
try this once
, npm run
s
t
a
r
t
:web
N
ninja7
•
10/5/23, 2:24 PM
this should atleast open the login page
S
Suryansh
OP
•
10/6/23, 5:45 AM
Can we have a call
?
S
Suryansh
OP
•
10/6/23, 5:55 AM
The login screen has come
S
Suryansh
OP
•
10/6/23, 8:20 AM
But unable to login
/signup through GitHub
. Shows network error
S
Suryansh
But unable to login/signup through GitHub. Shows network error
N
ninja7
•
10/6/23, 9:08 AM
signing in through github requires to configure some env variables i guess
N
ninja7
•
10/6/23, 9:16 AM
maybe chane env variable for mongo once
, MONGO
_URL
=
m
o
n
g
o
d
b
:
/
/host
.docker
.
i
n
t
e
r
n
a
l
:27017
/novu
-db
N
ninja7
signing in through github requires to configure some env variables i guess
P
Pawan Jain
•
10/6/23, 9:26 AM
GitHub login will not work in local machine
P
Pawan Jain
•
10/6/23, 9:26 AM
It is for cloud users only
Next page
cd docker/local/development
cd docker/local/development
docker-compose up
docker-compose up