https://github.com/simonguozirui/cooxle
A twitter-like social media platform with easy-to-use posting and account systems.
https://github.com/simonguozirui/cooxle
amazon-web-services apache aws-ec2 css3 dynamic-webpages html5 ics4u-course javascript localhost mamp mysql php phpmyadmin-database route53 social-media sql twitter
Last synced: about 2 months ago
JSON representation
A twitter-like social media platform with easy-to-use posting and account systems.
- Host: GitHub
- URL: https://github.com/simonguozirui/cooxle
- Owner: simonguozirui
- License: mit
- Created: 2017-04-25T18:11:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-19T12:52:26.000Z (about 9 years ago)
- Last Synced: 2025-01-16T01:36:32.265Z (over 1 year ago)
- Topics: amazon-web-services, apache, aws-ec2, css3, dynamic-webpages, html5, ics4u-course, javascript, localhost, mamp, mysql, php, phpmyadmin-database, route53, social-media, sql, twitter
- Language: CSS
- Homepage: http://cooxle.life/
- Size: 3.16 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cooxle
Cooxle is a twitter-like social media platform with easy-to-use posting and account systems.
You can access the live website on [http://cooxle.life](http://cooxle.life). (Server is stopped Currently)
Licensed under the MIT license. Created by Simon Zi Rui Guo and Nicholas O'Brien for their Grade 10 Computer Science class (ICS4U). Use setup.sql to create the database structure we use or copy the code below and run it on a local mysql and apache server.
```sql
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `cooxledb`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`userid` int(11) NOT NULL,
`postid` int(11) NOT NULL,
`content` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `follow`
--
CREATE TABLE `follow` (
`followerid` int(11) NOT NULL,
`followingid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `likes`
--
CREATE TABLE `likes` (
`userid` int(11) NOT NULL,
`postid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` int(11) NOT NULL,
`tag` varchar(255) NOT NULL DEFAULT '',
`content` varchar(255) NOT NULL DEFAULT '',
`username` varchar(255) NOT NULL,
`time` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` char(64) COLLATE utf8_unicode_ci NOT NULL,
`salt` char(16) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`pic` text COLLATE utf8_unicode_ci NOT NULL,
`bio` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0;
```