Giter Site home page Giter Site logo

ftel-notes-angularcli-meteor's Introduction

FTEL Notes AngularCli-Meteor

This project was begin from angularcli-meteor of Urigo.

And the same: angularcli-meteor of Darkbasic.

How to run on local?

Prerequisites

Let's start

  1. First run npm install
  2. (Windows only) Recreate symbolic link in ~/api/ for node_module, package.json, package-lock.json from project directory and declarations.d.ts from ~/src/declarations.d.ts by use Link Shell Extension
  3. npm run api
  4. Open other terminal run cmd: npm run meteor-client:bundle, and then run npm run start

Video

Watch the video

Deployment

  1. Deploy 'api' (Meteor) directory: https://github.com/hongan126/ftelnotes-api-meteor
  2. Deploy 'client' (Angular): https://github.com/hongan126/ftelnotes-client-angular-dist

Meteor server

Run meteor from the api directory to start the Meteor server.

Bundling Meteor client

meteor-client-bundler is a module bundler which will take a bunch of Atmosphere package and put them into a single module, so we can load Meteor's client scripts regardless of what framework we're using to run our server.

Run ./node_modules/.bin/meteor-client bundle -s api.

Development server

Then run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name or ng generate component component-name --module app to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use npm run build-prod for a production build with AOT.

Running unit tests

Run npm run test to execute the unit tests via Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via Protractor.

~/api/settings.json for deploy on Galaxy

ftel-notes-angularcli-meteor's People

Contributors

angular-cli avatar hongan126 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ftel-notes-angularcli-meteor's Issues

Error while running npm i command

I'm trying to run this project in my local but getting this error on the npm i command

npm WARN tarball tarball data for [email protected] (sha512-kKb1mSqRMwF0GHKya5/hZsI2m7Flg4ONZDeYu4e6Gx+kYAu86zsLNCHcUmNWhCRaUcKshNI272hOzuaCQDzJ2g==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for [email protected] (sha512-7IvaFuYtfbcXm0fGb13mmRYVQdzQDXETAtvYHbCDPt2V88Y8l2HaULOyW6ueoYA0JhGIcLK7dtHkDcBWySqnBw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for [email protected] (sha512-sgv/iF/T4/SewJkaVpldKC4WjSkz0JsOh2eKtxCPpCO1oR05+7MOF+H476HVRbLArkgA7j5TRJJ4p2jdFkUGQQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for [email protected] (sha512-h3qf9TNn53BpuXTTcpC+UehiRrl0Cv45Yr/xWayApjw6G8Bg2dGke7rIwDQ39piciWCWrC+WiqLjOh3SUp9n0Q==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for [email protected] (sha1-8O/hjE9W5PQK/H4Gxxn9XuYYjzg=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for [email protected] (sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0=) seems to be corrupted. Trying one more time.

> [email protected] install /home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-72_binding.node": 

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g. 

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> [email protected] install /home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v72-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v72-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/build'
make: Entering directory '/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
rm: cannot remove './Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw': No such file or directory
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
make: *** [bcrypt_lib.target.mk:113: Release/obj.target/bcrypt_lib/src/blowfish.o] Error 1
make: Leaving directory '/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-60-generic
gyp ERR! command "/home/anoop/.nvm/versions/node/v12.18.2/bin/node" "/home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/home/anoop/.nvm/versions/node/v12.18.2/bin/node /home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 5.4.0-60-generic
node-pre-gyp ERR! command "/home/anoop/.nvm/versions/node/v12.18.2/bin/node" "/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt
node-pre-gyp ERR! node -v v12.18.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok 
Failed to execute '/home/anoop/.nvm/versions/node/v12.18.2/bin/node /home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding' (1)
../src/bcrypt.cc: In function ‘void encode_salt(char*, u_int8_t*, u_int16_t, u_int8_t)’:
../src/bcrypt.cc:139:24: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
In file included from /usr/include/stdio.h:867,
                 from ../src/bcrypt.cc:48:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bcrypt.cc: In function ‘void bcrypt(const char*, const char*, char*)’:
../src/bcrypt.cc:270:29: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
In file included from /usr/include/stdio.h:867,
                 from ../src/bcrypt.cc:48:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 4 and 5 bytes into a destination of size 4
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bcrypt.cc: At global scope:
../src/bcrypt.cc:322:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw: No such file or directory
compilation terminated.
make: *** [bcrypt_lib.target.mk:113: Release/obj.target/bcrypt_lib/src/bcrypt.o] Error 1
make: Leaving directory '/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-60-generic
gyp ERR! command "/home/anoop/.nvm/versions/node/v12.18.2/bin/node" "/home/anoop/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /home/anoop/learning/meteor/ftel-notes-angularcli-meteor/node_modules/bcrypt
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN @angular/[email protected] requires a peer of @angular/core@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/common@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/animations@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/core@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/common@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/forms@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.