This a NodeJS + React App that takes user input and see if the input is Palindrome. The app can store all past entries and their posted time. The user would have the ability to remove any entry by a click of a button. The app users MERN stack and MVVM architecture.
-
Make sure MongoDB is installed, and start mongoDB by typing
mongod
in the command line. -
Make sure Node and NPM are installed by typing
node -v
in the command line. If NPM is not installed please proceed to this page to install Node. -
Clone or download the repo to the local machine.
-
cd
to the folder where the backend is in, for example,cd ~/Downloads/Palindrome/backend
or cdC:\\GitHub\Palindrome\backend
-
Install project dependency by typing in
npm install
. -
Start the server by typing
npm start
. -
Open a new terminal tab
-
cd
to the folder where the frontend code is in, for example,cd ~/Downloads/Palindrome/frontend
or cdC:\\GitHub\Palindrome\frontend
. -
Install project dependency by typing in
npm install
. -
Start the server by typing
npm start
. -
Visit the app from localhost:3000
Node.js and Express.js are used to setup routing and request handling. With the help of other open source NPM packages.
Bootstrap is used as the UI framework, it provides tons of features to make web application adapt to different screen sizes and aspect ratios.
The Application will be hosted on Linode, a cloud platform that provides fast Linux server, the benefit of using Linode is versatility and scalability. Many CPU, memory, and server location configurations are available to choose based on different needs.
MongoDB is a non-relational database designed to be high-performance and easy to implement, the NPM package Mongoose is used connect to the database and perform Create, Read, Delete operations.
The API documentation is stored as Palindrome.postman_collection.json
in the root folder. Make sure Postman is installed and import the JSON file as a collection. You can start the API request right from Postman
Can be found in the roor folder sequenceDiagram.pdf
.