- run
npm i
to install all dependencies. - You must have a mongodb instance in local or cloud.
- Create a
.env
file with the below information. - Run api with
npm run api
- Run angular project with
npm run ng serve
.
If you want to deploy in Google Cloud Platform, you must create a app.yaml file with the next values
//app.yaml
runtime: nodejs10
service: mongo-angular-auth
env_variables:
SECRET_KEY:
PORT:
MONGO_HOST:
MONGO_DB:
MONGO_USER:
MONGO_PASS:
If you want run in another place you need a
.env
SECRET_KEY:
PORT:
MONGO_HOST:
MONGO_DB:
MONGO_USER:
MONGO_PASS:
> npm i //install dependencies
> npm start