This is a social media app which is one of my largest personal project. The app features image or video posting, product promotion, live post update and chat implementation with web socket. Notification of latest updates. Post search. Post promotion and more.
The project is currently 60% done which includes -
- Live post update with web socket
- Live like and comment to post update
- Post creation with video or photo
- Feed page
- Authentication
- Profile creation
- Profile photo and banner update
- backend api
Once the project is compele it will include -
- Live chat
- Post and product promotion
- Product upload
- Chat to buy
- Search
- Live notification
To use this project clone the repo -
git clone https://github.com/jamilur-r/socializer.git
CD into the project directory
cd socializer
Install packages
cd api && yarn install
cd ../tamuku && yarn install
create a nodemon.json file in root directry of "api". This file should contain project credentials like so -
{
"env": {
"PORT": <POST-NUMBER>,
"DB_URI": <DB-URL>,
"SECRET": <16-DIGIT-SECRET-KEY>
}
}
To start API server cd into "api" directory and run -
yarn dev
or
yarn build
for production build
To start app on expo cd into "tamuku" directory and run -
yarn android
or
yarn ios
You might face error connecting to local server from expo app. to solve this run -
ipconfig
for windows and copy the ipv4 address which might be something like 192.168.0.107 now replace this in -
/tamuku/src/config/constants.ts
which looks something like this -
export const API_ENDPOINT = "http://<REPLACE_HERE>:5000/";
export const POST_SERVER = "http://<REPLACE_HERE>:5001";
also replace the IPV4 address in
api/utils/utils.ts
export const IP = "<REPLACE_HERE";