GithubHelp home page GithubHelp logo

bagasstrongman / instagram Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhoushaw/instagram

0.0 1.0 0.0 4.76 MB

A web-app with some feature like Instagram!!😉📸😊

Home Page: https://instagram-olive.vercel.app

JavaScript 52.69% TypeScript 18.06% HTML 0.13% PLpgSQL 5.47% SCSS 23.66%

instagram's Introduction

Introduction

中文简介

Create your own instagram!

Technology stack

  • react buckets of
  • ant design
  • egg.js
  • mysql

Before and after the end of the separation of development mode, the front-end and back-end projects belong to different projects

// instagram/client The front-end engineering
// instagram/service The backend engineering

Note: this project is purely personal fiddle, have nothing to do with them.

Features screenshots

The login

Focus on

Posting

Thumb up, review and search

Modify personal information

Run the project

Because of different port reason, front and back side to solve the cross domain. Launched devServer front-end engineering, need to start the backend engineering

Run the back-end projects

  • Please make sure you have install mysql in your local environment and config the global variable
  • mysql -u root -p # and enter the password database
  • create database learn
  • use learn; # change dabase
  • source learn.sql's path; example:source /Users/shawzhou/Desktop/learning/instagram/db/learn.sql;
  • config eggs.js link dabase information
// goto service/config/config.local.ts,config your dabase information
config.sequelize = {
    dialect: 'mysql',
    host: '127.0.0.1',
    port: 3306,
    database: 'learn',
    username: '', 
    password: '', 
    operatorsAliases: false
};
  • config NiuYun upload token information
// goto /service/app/service/qiniu.ts,Configure your seven NiuYun token information
export default class qiniuService extends Service {
    // To seven NiuYun individual panel=>The secret key management view
    private accessKey: string = ''; // The secret key
    private secretKey: string = ''; // The secret key
    private publicBucketDomain = ''; // Outside the chain of the default domain name

    private options: qiniuOptioin = {
        scope: '', // upload scoped
        expires: 7200
    }

    // ....
}

// Seven NiuYun storage area set, to go/client/src/components/upload/index.js,Configure the upload area
class Upload extends React.Component{


    uploadFn = async () => {
        // ...
        var config = {
            region: qiniu.region.z0 // Subordinate to the area, can go to seven NiuYun document view
        };
        // ...
}
  • in /service file
  • npm install
  • npm run dev

Run the front-end project

  • cd client
  • npm install
  • npm start

The target function

  • Login, registration
  • Modify personal information
  • Focus on
  • comments
  • give a like
  • Search for posts
  • Upload the picture
  • Posting
  • collection

If you have any help to you, you can order the upper right corner of the Star support thank you very much! ^_^

instagram's People

Contributors

zhoushaw avatar oldturkey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.