An open API service indexing awesome lists of open source software.

https://github.com/raihan2bd/filmwise

A full stack project build with Golang(Go), PostgreSQL, React, Redux, TypeScript, Html and CSS. Your Ultimate Movie Hub. Experience movies like never before, the web application that lets you dive into detailed movie information, share your thoughts through comments and reviews. Discover, discuss, and decide on your favorite films all in one place.
https://github.com/raihan2bd/filmwise

go golang jwt-authentication postgresql restful-api

Last synced: about 1 year ago
JSON representation

A full stack project build with Golang(Go), PostgreSQL, React, Redux, TypeScript, Html and CSS. Your Ultimate Movie Hub. Experience movies like never before, the web application that lets you dive into detailed movie information, share your thoughts through comments and reviews. Discover, discuss, and decide on your favorite films all in one place.

Awesome Lists containing this project

README

          


FilmWise

# 📗 Table of Contents

- [📗 Table of Contents](#-table-of-contents)
- [ FilmWise ](#-about-project-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Database](#database)
- [Usage](#usage)
- [Build](#build)
- [Deployment](#deployment)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [📝 License ](#-license-)

# FilmWise
FilmWise: Your Ultimate Movie Hub. Experience movies like never before with FilmWise, the web application that lets you dive into detailed movie information, share your thoughts through comments and reviews, and connect with fellow cinephiles. Discover, discuss, and decide on your favorite films all in one place. if you want to see the front-end part, you can click [here](https://github.com/raihan2bd/filmwise-front)

## 🛠 Built With
### Tech Stack

Front End


  • Nextjs

  • React

  • Redux

  • JAVASCRIPT

  • Html

  • CSS

Back End


  • Golang

  • PostgreSQL

## 🚀 Live Demo

- Project ScreenShot

![Capture](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177343-28e03d43-c9c2-493b-ab4a-447884cb80e5.PNG)

![Capture2](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177383-fad4b05b-868f-4721-8a15-3ae2219d2791.PNG)

![Capture3](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177404-dd500d3f-1077-4c39-ae5e-0e139991e903.PNG)

![Capture4](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177423-ffb82686-4413-43a0-9814-9125da5b6722.PNG)

![Capture5](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177434-0e2a5f53-b5d4-4395-9639-43f29c78d0ad.PNG)

![Capture6](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177442-f659f94b-f9a1-47fd-90c7-495d88cbd191.PNG)

![Capture7](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177463-2f08dc17-2fb2-479d-a759-d6e4213e6865.PNG)

![Capture8](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177469-9f97149a-e199-4e24-92e4-6891bae9360d.PNG)
![Capture9](https://github-production-user-asset-6210df.s3.amazonaws.com/35267447/269177483-7a8bada7-b3c8-4a6d-977e-7a3cb6d8e464.PNG)

> Live Demo Link

(back to top)

### Key Features

- Discover detailed movie information, from plots to cast.
- Engage in vibrant discussions by commenting on movies.
- Add your personal reviews to contribute to the community.

(back to top)

## 💻 Getting Started

To get a local copy up and running, follow these steps.

### Prerequisites

In order to run this project you need:
- Then Make sure you have installed [Go (golang)](https://go.dev/dl/) version 1.20.4 or the latest stable version.
- Then make sure you have installed [PostgreSQL](https://www.postgresql.org/) on your local machine if you want to use this project locally.
- Then Create a database called `filmwise` inside the database and create tables using this `project>database` `schema` SQL query.

- First of all to see this project's graphical interface make sure you run the [front-end](https://github.com/raihan2bd/filmwise-front) part

### Setup

- Clone this repository to your desired folder:

```sh
cd your-folder
https://github.com/raihan2bd/filmwise.git
```

- Before running the project please make sure you create a `.env` file to your project root directory and add `DATABASE_URI`, and `JWT_SECRET_KEY` environment variables to the file. For example:
```
DATABASE_URI="host=localhost port=5432 dbname=filmwise user=postgres password=your password sslmode=disable"
JWT_SECRET="your jwt secret key"
CLD_URI="Secreat Key of cloudinary"
CLOUD_NAME="Name of cloudinary account"
```

### Getting JWT Secret Key

To obtain the JWT secret key, please click here.

An open Go terminal is required. In the terminal, please copy the following code and paste it into your .env file.

Like this

JWT_SECRET="*******"

```

package main

import (
"crypto/rand"
"encoding/base64"
"fmt"
)

func main() {
// Define the desired length of the secret key in bytes
keyLength := 64 // Adjust the length as needed

// Create a byte slice to hold the random bytes
key := make([]byte, keyLength)

// Generate random bytes using crypto/rand
_, err := rand.Read(key)
if err != nil {
fmt.Println("Error generating random bytes:", err)
return
}

// Encode the random bytes in base64 to create a string
secretKey := base64.StdEncoding.EncodeToString(key)

fmt.Println("Generated JWT secret key:", secretKey)
}

```

### Getting Cloudinary Serect key and Name

Cloudinary is a cloud-based media management platform that helps businesses and developers efficiently store, manage, and deliver images and videos for websites and applications. It provides features like image and video uploading, storage, transformation, optimization, and content delivery via a content delivery network (CDN), making it easier to handle media assets in web and mobile applications. Cloudinary's services can enhance website performance, user experience, and streamline media asset workflows.

For using this you need to Create an account Or if you have an Account you need to Sign In

After that go into the Dashborad

Copy the Cloud Name and
API Environment variable

```
CLD_URI="cloudinary://******"

CLOUD_NAME="****"

```

### Install

Install this project with:

- Install the required gems with:

```sh
go mod tidy
```

### Database

- Create the databases properly, You need to open an SQL editor and run the `/database/schema.sql` file script. Make sure you run the script block by block.

### Usage

- To run the development server, execute the following command:

```sh
go run ./cmd/api/ .
```

### Build

- To build the project for production-ready run the following command:

```sh
go build -o main ./cmd/api/*.go
```

### Deployment

To deploy your project online You can visit [Render](https://www.render.com/)

(back to top)

## 👥 Author

👤 **Abu Raihan**

- GitHub: [@raihan2bd](https://github.com/raihan2bd)
- Twitter: [@raihan2bd](https://twitter.com/raihan2bd)
- LinkedIn: [raihan2bd](https://linkedin.com/in/raihan2bd)

👤 **Hassaan Baig**

- GitHub: [@Hassaanjbaig](https://github.com/Hassaanjbaig-code/)
- LinkedIn [Hassan Baig](https://linkedin.com/in/hassaan-jawwad=baig)


(back to top)

## 🔭 Future Features

- [ ] **Improve user experience**

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/raihan2bd/filmwise/issues).

(back to top)

## ⭐️ Show your support

If you like this project, please leave a ⭐️

(back to top)

## 🙏 Acknowledgments

I would like to thank [Trevor Sawler](https://www.gocode.ca/) Who helped me a lot to learn Golang.

(back to top)

## 📝 License

This project is [MIT](./LICENSE) licensed.

(back to top)