-
- Nodejs (min version >= 10.X)
# If on Windows : Use Power-Shell to execute below commands
# If on Linux : sudo is required with -g based npm commands (They are global dependencies being installed in System)
# To run npm commands concurrently
$ sudo npm install -g concurrently
# To create daemon process of node server for development purpose
$ sudo npm install -g nodemon
# To install Project's dependencies
# Then in project root's directory run the following commands :
$ sudo npm run init
-
- To do this, In AWS Management Console, Search and open IAM service, Then Select Users from Left-hand Side Pane. Select your user-name listed in Table. Then click on Security Credentials Tab, there you can access & view your all AWS Access Key IDs. If the user does not have a user account, then create one.
-
Update your AWS Cognito Credentials including: userPoolId, region & ClientId in configuration_keys.json.
- You can find these in AWS Cognito service page. The userPooolID can be found under General settings, "Pool Id". The ClientID is under App integration, then App client settings, then there is a title for the App client, and under that there is "ID", this is the ID to use.
# If on Windows : Use Power-Shell to execute below commands
# To run application normally
$ npm start
# To run application in dev-mode
$ npm run start-dev
Step 4 : Access application on URL -> http://localhost:3000 in your browser.
- Generate a build of client side (Front-end) code;
cd client ; npm run build ;
- After successful build, Delete node_modules in /client/node_modules & root direcotory of repository.
- Create a Zip file of repository from root directory excluding .git Directory
- Click on
Create New Application
on Top Right corner. - Enter the name of application. Click on 'OK'.
- Create an environment by clicking on
Create one now.
And Select Web server environment. - Enter Domain Name and check its availability.
- Select NodeJS as preconfigured platform.
- In Application Code , Select
Upload your code
. And upload the zip you created in your local computer of the repository. - Click on Configure more options, And Click on Software configuration . Click on modify .
- Add node command as
npm run server
. And save the configuration. - Click on Create Environment. After process completion , A
URL
will be generated . - You can find this URL in the dashboard of Selected Application in AWS Elastic Beanstalk
Dependency | README |
---|---|
NodeJS | https://nodejs.org/ |
ReactJS | https://reactjs.org/ |