The application in this project is an online Book Store web application where MEAN stack was used for developing the application. The application is intented to be hosted on an AWS EC2 instance.
This project was copied from this repository and was then modified to make it work with my AWS EC2 instance.
http://ec2-54-187-230-237.us-west-2.compute.amazonaws.com:4200/
- Login to your AWS EC2 instance
- Setup Node on your machine
- Navigate to the folder book-store-backend
- Run the command
npm ito install all required dependencies for the back-end server - Navigate to book-store-backend/src
- Run
npm run tscto build your bacnkend's code - Navigate to book-store-backend/public
- Start the backend server:
nohup node app.js & - Navigate to the folder book-store
- Run the command
npm ito install all required dependencies for the front-end server - Start the front-end server:
nohup ng serve --host <ec2_ipv4> --port <port_number> & - Exit the terminal by using the 'exit' command (DO NOT CLOSE THE TERMINAL!!!!)
- The application can be accessed through this link: http://<your_ec2_domain_name>:4200