Skip to content
プロジェクト

概要

Instagramのような機能をいくつか備えたWebアプリ!!😉📸😊

Web・アプリ

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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! ^_^

関連プロジェクトを探す

読み込み中…