Skip to content

Commit 274acf8

Browse files
authoredAug 1, 2019
Add files via upload
0 parents  commit 274acf8

6 files changed

+107
-0
lines changed
 

‎README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Feed Reader App with PHP, MySQL and React
2+
3+
This is a small react app. Here, the authentication system is developed and feed entries are managed based on login user by using reactJS, mysql and PHP.
4+
5+
Step:1 - Create a database named reactdb.
6+
7+
Step:2 - Import database file (reactdb.sql). database file attached in here.
8+
9+
Step:3 - If you are using xampp Go to the htdocs or if you are using Wampserver Go to the www directory and put react-php , react_feed folder here.
10+
11+
Step:4 - Go to the react_feed folder and install npm using this comand at port:
12+
13+
npm install
14+
15+
Step:5 - Run the Feed Reader App using this command at port:
16+
17+
npm start
18+
19+
Step:5 - login in feed reader using an existing user or you can register user.
20+
21+
<img src="feed-reader-one.png">
22+
</br>
23+
<img src="feed-reader-login.png">
24+
</br>
25+
<img src="feed-reader-Signup.png">
26+
</br>
27+
<img src="feed-reader-home.png">
28+
</br>

‎feed-reader-Signup.png

18.6 KB
Loading

‎feed-reader-home.png

38.9 KB
Loading

‎feed-reader-login.png

13.5 KB
Loading

‎feed-reader-one.png

21.7 KB
Loading

‎reactdb.sql

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.8.5
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: 127.0.0.1:3306
6+
-- Generation Time: Aug 01, 2019 at 06:45 AM
7+
-- Server version: 5.7.26
8+
-- PHP Version: 7.2.18
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET AUTOCOMMIT = 0;
12+
START TRANSACTION;
13+
SET time_zone = "+00:00";
14+
15+
16+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19+
/*!40101 SET NAMES utf8mb4 */;
20+
21+
--
22+
-- Database: `reactdb`
23+
--
24+
25+
-- --------------------------------------------------------
26+
27+
--
28+
-- Table structure for table `feed`
29+
--
30+
31+
DROP TABLE IF EXISTS `feed`;
32+
CREATE TABLE IF NOT EXISTS `feed` (
33+
`feed_id` int(11) NOT NULL AUTO_INCREMENT,
34+
`feed` text,
35+
`user_id` int(11) DEFAULT NULL,
36+
PRIMARY KEY (`feed_id`)
37+
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
38+
39+
--
40+
-- Dumping data for table `feed`
41+
--
42+
43+
INSERT INTO `feed` (`feed_id`, `feed`, `user_id`) VALUES
44+
(2, 'hi i am test', 2),
45+
(3, 'hi i am test 2', 2),
46+
(4, 'hi i am test 3', 2),
47+
(5, 'hi this is me', 3),
48+
(6, 'test 4', 2),
49+
(7, '1st post', 1);
50+
51+
-- --------------------------------------------------------
52+
53+
--
54+
-- Table structure for table `users`
55+
--
56+
57+
DROP TABLE IF EXISTS `users`;
58+
CREATE TABLE IF NOT EXISTS `users` (
59+
`user_id` int(11) NOT NULL AUTO_INCREMENT,
60+
`username` varchar(50) DEFAULT NULL,
61+
`password` varchar(300) DEFAULT NULL,
62+
`name` varchar(200) DEFAULT NULL,
63+
`email` varchar(300) DEFAULT NULL,
64+
PRIMARY KEY (`user_id`)
65+
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
66+
67+
--
68+
-- Dumping data for table `users`
69+
--
70+
71+
INSERT INTO `users` (`user_id`, `username`, `password`, `name`, `email`) VALUES
72+
(1, 'emon', '12345', 'emon ahmed', 'emon@devemon.com'),
73+
(2, 'test', '12345', 'test', 'test@test.com'),
74+
(3, 'amitumi', '12345', 'ami tumi', 'amitumi@amitumi.com');
75+
COMMIT;
76+
77+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
78+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
79+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)
Please sign in to comment.