zhoushaw/Instagram
소개
Instagram과 비슷한 기능을 일부 제공하는 웹 앱입니다!!😉📸😊
웹 및 앱측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalIntroduction
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
- git clone https://github.com/zhoushaw/Instagram.git
- cd Instagram
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! ^_^
관련 프로젝트 살펴보기
불러오는 중…