Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
boopchoncc committed Aug 7, 2024
1 parent 5f82ba6 commit f269276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ This will help you divide up work among your teammates.**
2. React and Redux play a fundamental role to our application's front-end develpopment and state management. One of the defining features about React is the Virtual DOM which bypasses the need for manipulating the browser's DOM. The lightweight copy (Virtual DOM) minimizes re-renders and improves efficiency. Redux provides a centralized data store making it easier to track, manage and update our documents across various components.
3. Express plays a pivitol role in our backend framework, allowing for easy setup of API endpoints to handle various requests such as GET, POST, PUT and DELETE. In addition, Express is also capable of handling multiple requests simultaneously and provides meaningful responses in case of failures, which has made debugging a lot simpler. Lastly, seamless intergration with Redux Thunks allows for smooth communication between the front-end and back-end.
4. For database storage, we chose to use MongoDB due to its flexibility and scalability in storing and managing user data. Its schema-less architecture allows us to accomodate complex data structures easily. Furthermore, MongoDB enhances our app's efficiency by providing fast data retrieval and processing capabilities, ensuring a seamless user experience and enabling us to handle large volumes of data with ease.
5. Our application is currently being hosted through AWS EC2, an industry-standard platform known for its robustness and scalability in web services hosting which doesn't spin down despite inactivity. We made use of security groups to block requests from different ip-addresses and ports, enhancing the security of our application. Later, we integrated a Route 53 custom domain to give our application a user-friendly domain name.
5. Our application is currently being hosted through AWS EC2, an industry-standard platform known for its robustness and scalability in web services hosting which doesn't spin down despite inactivity. We made use of security groups to block requests from different ip-addresses and ports, enhancing the security of our application. Later, we integrated a Route 53 custom domain to give our application a user-friendly domain name, and used ELB and Amazon certificates to encrypt our server.


## Above and Beyond
Expand Down
10 changes: 5 additions & 5 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ var editAccountsRouter = require('./routes/editAccount')
var app = express();
connectDB()

const corsOptions = {
origin: "https://project-28-svkk-1.onrender.com", // frontend URI (ReactJS)
}
app.use(cors(corsOptions));
// app.use(cors());
// const corsOptions = {
// origin: "https://project-28-svkk-1.onrender.com", // frontend URI (ReactJS)
// }
// app.use(cors(corsOptions));
app.use(cors());

app.use(logger('dev'));
app.use(express.json());
Expand Down

0 comments on commit f269276

Please sign in to comment.