muneebGH / Twitter-Clone

A web based twitter clone app built using node js,express and mysql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter clone

instructions for setting up :

  • clone the project
  • cd to project directory
  • install npm if havent installed yet
  • install mysql if havent installed
  • run this command to set up database npm run setDB
  • if this fails on windows : run sql script manually
  • create .env file
  • copy everything from env_sample and insert in .env file
  • initialize every environment variable in env file with your own db credentials
  • run npm install
  • only for development : install nodemon if you havent installed by sudo npm install -g nodemon
  • for development : run npm run dev
  • for testing : run npm run start
  • if you see handshake error : Client does not support authentication protocol requested by server; consider upgrading MySQL client this maybe because of mysql version if so
  • run mysql -u root -p
  • run ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your password'
  • switch to development branch Dont Commit on master branch

About

A web based twitter clone app built using node js,express and mysql


Languages

Language:HTML 55.8%Language:JavaScript 31.8%Language:CSS 9.5%Language:TSQL 2.9%