A twitter clone that looks like instagram but does not have that many features.
Visit instatweet.netlify.app to view the application in action!
Main features of the application
- Authentication: Sign Up, Login
- User: Profile, Follow, Update
- Post: Create, Delete, Like
- Comment: Comment on Post, Delete
- UI: Responsive, Reactive
You can run the project in these ways:
Build and build the docker compose file using:
docker-compose build
Now run the application by using:
docker-compose up
If you change anything in the source code, please build the docker compose file again. And please ensure that port 3000 is unallocated.
The application will start on http://localhost:3000/.
Please keep in mind that, running this project from docker, it will initialize an empty database.
You can run the frontend or backend separately. The process is documented in each folder.
To run the api server you'll need a postgres database. Please create on and pass it as an environment variable like:
DB_URI=postgres://username:password@host:port/dbname
If you run the backend first time in a new database please pass this environment variable:
DB_SETUP=true
This will migrate the models to the database.
Additional environment variables you can pass to the project:
JWT_SECRET=jwt_secret
PORT=port
NODE_ENV=development/production