Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

an instagram api clone for 2201-fsa-core

NotificationsYou must be signed in to change notification settings

veyselguven/instagram-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's build an instagram-like api clone!

Getting started

npm i will install your express server, sequelize, and pg deps, as well as your dev deps includingnodemon

from there, run the following cmd in your terminal to create your db:
$ createdb instagram-clone

node db/seed.js will seed your database, andnpm run start will launch your express server! to test, try the following curl command:

$ curl http://localhost:5500/api/users -H'Content-Type:application/json' -d'{"username":"newUser","password":"@#$#aslashfienf"}'

curl is a cli client that lets you perform network requests just like postman, insomnia, andaxios / fetch from the browser! (and other clients, there are tons of options ... :D)

if you see the following response you're good to go! check out your db withpsql instagram-clone and run a select all statementselect * from users; to verify your new user!

Extending the project

There are Tag and Post entities in our schema. How could you hook these up in RESTful routes to allow users to associate tags with posts, or fetch all the posts by a certain user, or evenfollow other users -- the sky's the limit y'all, there are a ton of cool magic methods you can leverage to make those instance-level associations happen!

About

an instagram api clone for 2201-fsa-core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp