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

https://github.com/mathcale/mathbuster

An old-school movie rental app, built with modern tech for Digital Ocean's 2021 MongoDB Hackathon
https://github.com/mathcale/mathbuster

digitalocean hackathon mongodb nestjs nextjs react typescript

Last synced: 2 months ago
JSON representation

An old-school movie rental app, built with modern tech for Digital Ocean's 2021 MongoDB Hackathon

Awesome Lists containing this project

README

          



Mathbuster

An old-school movie rental app, built with modern tech for Digital Ocean's 2021 MongoDB Hackathon



Run in Insomnia

## Features

- ๐Ÿ“ผ Movies

- Create
- List all
- Show one
- Edit
- Delete

- ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Customers

- Create
- List all
- Show one
- Edit

- โณ Rental
- Rent movie to customer
- Return movie

## Tech

- [NestJS](https://nestjs.com/) as back-end;
- [Next.js](https://nextjs.org/) as front-end;
- MongoDB, on [DO Managed Databases](https://www.digitalocean.com/products/managed-databases-mongodb/)
- [DO App Platform](https://www.digitalocean.com/products/app-platform/)

## Running the app locally

```bash
# Install the correct Node version with nvm
$ nvm install

# Install dependencies with Yarn
$ yarn

# Install packages' dependencies with Lerna
$ yarn bootstrap

# Create a .env file based on the example for the back-end
# Make sure to fill it with your MongoDB instance credentials
$ cp packages/backend/.env.example packages/backend/.env

# Create a .env file based on the example for the back-end
# Fill it with your local api address
$ cp packages/frontend/.env.example packages/frontend/.env.local

# Start dev servers!
# Back-end is available on port 3000 and front-end on port 3001
$ yarn start
```

## Who made this?

- [Matheus Calegaro](https://matheus.me)

## License

[MIT licensed](LICENSE)