Uploading Files to Aws S3 using MEAN Stack. (Still in development...)
Use npm install
in both Angular and Node folders to install the Node Modules.
Create a file named s3.env.js
in Teamsb-fileupload-node\teamsb-fileupload-node\app\config\
directory
and add the following contents:
const env = {
AWS_ACCESS_KEY: 'your_access_key',
AWS_SECRET_ACCESS_KEY: 'your_secret_key',
REGION : 'your_region',
Bucket: 'your_bucket'
};
module.exports = env;
Run ng serve
for a Angular dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
And npm start
for starting Node listening server ( http://:::8080/ )
.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Docs or
To get more help on the NodeJs CLI use npm help <term> [<terms..>]
or go check out theNodejs CLI Docs or