npm i -g nodemon @angular/cli@latest
npm i --save express mongodb mongoose body-parser cors dotenv
npm i --save jquery bootstrap popper.js @fortawesome/fontawesome-free
Installation instruction here
# On /mean/api create a new .env file
touch .env
nano .env
# copy and paste this
PORT=8888
DB_CONNECTION=mongodb://localhost:27017/SUPERVENTES
#on /mean
./creationBase.sh
Add this lines on angular.json
//...
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/@fortawesome/fontawesome-free/css/all.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/popper.js/dist/umd/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"
]
//...
sudo systemctl start mongod
npm run dev
ng serve -o