0

I would like to setup a new application made in angular 5 and express (express in typescript as well).

Is there any guide you can suggest me to achieve my goal?

Many thanks in advance, Giuseppe

1 Answer 1

0

I believe your talking about Angular 5 frontend and Node express REST API

BACKEND

You should search for typescript node express REST starters on github for the backend part setup. I've also created one such starter with mongoDB and basic JWT authentication here typescript-node-rest-starter.

FRONTEND:

Generate a project using angular-cli and then just find some examples and tutorials of consuming the REST API by Angular 2+ application. There is an ocean of resources here

Sign up to request clarification or add additional context in comments.

7 Comments

Hello, many thanks. Isn't there any chance of having server and client in one single project?
@user2357805 This doesn't make sense, because Angular project contains client-side code and backend project is... backend. They have different dependencies sets, purposes - everything. You just need to be sure that Angular dist will be copied to public folder on build.
Although the subject of your question is Angular 5, the answer is the same as here stackoverflow.com/questions/30676616/… It's not what it's made for so i think using it without REST API makes no sense to me.
Just found this: github.com/DavideViolante/Angular-Full-Stack Seems to be what I'm looking for.
@maljukan Not exactly, this is a single project with one package.json - likely angular-cli project where server-side items were added. I would warn agiainst this approach, it's impractical.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.