This is a project made on PBA Web Development at UCN. The Application use TypeScript, ExpressJS (with PassportJS), Angular4.
-
First run install npm packages
npm install
-
Install @angular/cli global
npm install -g @angular/cli
-
Create a new file named
.startupWithSecrets.ts
in the project root folderContent have to be like this (remember to replace the mongo URL):
process.env.MONGO_URL = "mongodb://localhost/typescript-db"; process.env.GOOGLE_CLIENT_ID = "GOOGLE CLIENT ID FROM GOOGLE CONSOLE"; process.env.GOOGLE_CLIENT_SECRET = "GOOGLE SECRET ID FROM GOOGLE CONSOLE"; require("./src/server/startup");
-
Now just run the nodemon script with start command
npm start