This repository is a full-stack application for a movie repository where users can add, edit, delete, and search for movies. User authentication is enforced using JWT.
The application is split into a backend and a frontend. The backend is a REST API written in Go and the frontend is built with React, where routing is also handled using react-router-dom v6.
The backend is built using Go with several packages for handling various aspects of the application:
github.com/go-chi/chi/v5
for multiplexergithub.com/golang-jwt/jwt/v5
for JWT-based authenticationgithub.com/graphql-go/graphql
for implementing GraphQLgithub.com/jackc/pgx/v5
for interacting with the PostgreSQL database
The full list of dependencies is available in the go.mod
file.
The frontend is built with React and handles routing within the application.
PostgreSQL is used as the database for this project.
- Navigate to the backend directory
- Run the backend with
go run ./cmd/api
- Navigate to the frontend directory
- Install the necessary dependencies with
npm install
- Run the frontend with
npm start
- Make sure PostgreSQL is installed and running on your machine
- Configure the database connection details in your backend application
This is a test project. Contributions, issues, and feature requests are welcome!
Ben Cyrus