A project for Seoul National University HCI class (2023-1)
김도현 💻 |
송유민 💻 |
신연상 💻 |
We recommend you to make a python environment, such as
conda create -n NextFeed python=3.8
conda activate NextFeedGit clone our two repos,
git clone https://github.com/NextFeed/NextFeed_server.git
git clone https://github.com/NextFeed/next-feed-front.gitRun the AI server from NextFeed_server. This is our AI server (which is currently CLIP)
You should make a settings.json file for Django (including any secret key!)
cd NextFeed_server/NextFeed
pip install -r requirements.txt
vim settings.json # Making settings.json file
python manage.py runserverYour settings.json file should look like this; write anything for the secret key!
{
"SECRET_KEY": "YOUR_ARBITRARY_SECRET_KEY"
}Now, you need to run the front-end server from next-feed-front.
cd next-feed-front
npm installYou need to write your Instagram Account info (for crawling)
cp .env.sample .env
vim .env # Write your instagram info!
npm run build
npm run serverYour .env file would look like this: wrote PORT=3000 for example
PORT=3000
INSTAGRAM_ID={your_instagram_id}
INSTAGRAM_PW={your_instagram_password}
Now, your front server is running at the background! You could find our project from localhost:{PORT_NUM}, http://localhost:3000 for the given example
To terminate the background server, find and kill it.
ps -ef | grep node # Find your background server PID number (will look like node ./server)
kill -9 {PID_NUMBER}