U
U
Umid2017-01-23 11:08:49
Node.js
Umid, 2017-01-23 11:08:49

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

1 answer(s)
M
Maxim, 2017-01-23
@DarCKoder

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 can
npm start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question