#TRAVEL PLACES APPLICATION
This is a simple TravelPlaces application built using React, Node.js, Redis, and MySQL. It allows users to create, and see the travel-places.
1. Create new travel place.
2. View a list of all travel places from Cache/Database.
3. Data is stored in a MySQL database and cached in Redis for faster retrieval.
1. React: A JavaScript library for building user interfaces.
2. Node.js: A JavaScript runtime environment for server-side development.
3. Express.js: A minimal and flexible web application framework for Node.js.
4. Redis: An in-memory data store used for caching.
5. MySQL: A popular relational database management system.
- Clone this repository.
https://github.com/fahim2k29/travel-places-app-express-react-redis-mysql.git
- Navigate to the project directory:
e.g. cd travelPlaces
- Install dependencies for the frontend and backend:
cd frontend && npm install
cd ../backend && npm install
-
Import the travelPlaces.sql file from backed folder to your database or create one with database name travelPlaces with a table called books which only have title column:
-
To run this application :
cd frontend && npm start
cd ../backend && npm start
Once the application start, you can access the application in your browser for frontend http://localhost:3000 and Backend http://localhost:5000
To create a new travelPlaces, enter the place name in the input field and click the "Submit" button.
React
Node.js
Express.js
Redis
MySQL