Answer the question
In order to leave comments, you need to log in
Express'a initial template (what? where? where?)?
Good afternoon.
New to express.
I can't figure out what, where and where in the start template provided by express itself (express [project name]). Some things are described
here .
But I still can't figure out how to run the express app. App.js itself, as far as I understand, is exported to /bin/www, but it does not start.
For example, I already have a ready-made template. How can I run it with express?
And in general, is it worth using this template?
Or do you have to do it yourself?
Answer the question
In order to leave comments, you need to log in
Search the article you provided in the example:
That is, your templates need to be placed in the views directory. The article uses jade, so see how this template engine works. Home page template available at mysite.com
Next, how to run, search the article again:
=> to run, you need to execute in the terminal:
or you cannpm start
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question