# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install
```

## Env File

Make a copy of the `.env.example` file called `.env` and set the proper `API_URL` entry

## Development Server

Start the development server on [http://localhost:3000](http://localhost:3000)

```bash
npm run dev
```

## Staging

```bash
npm run build:staging
```

After running build, restart the server
```bash
su
supervisorctl restart node-nuxt:node-nuxt_00
```

## Production

Build the application for production:

```bash
npm run build
pm2 restart all
```

Locally preview production build:

```bash
npm run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

## API URLS

### General Settings

[Settings PT](http://macam-be.lndo.site/api/v1/pt/settings)
[Settings EN](http://macam-be.lndo.site/api/v1/en/settings)

### Pages Example

[Homepage PT](http://macam-be.lndo.site/api/v1/pt/entries/home)
[Homepage EN](http://macam-be.lndo.site/api/v1/en/entries/home)

### Events Example

[Events PT](http://macam-be.lndo.site/api/v1/pt/events)
[Events EN](http://macam-be.lndo.site/api/v1/en/events)

[Single Event PT](http://macam-be.lndo.site/api/v1/pt/events/[event-slug])
[Single Event EN](http://macam-be.lndo.site/api/v1/en/events/[event-slug])

### Authors Example

[Authors PT](http://macam-be.lndo.site/api/v1/pt/authors)
[Authors EN](http://macam-be.lndo.site/api/v1/en/authors)

[Single Author PT](http://macam-be.lndo.site/api/v1/pt/authors/[author-slug])
[Single Author EN](http://macam-be.lndo.site/api/v1/en/authors/[author-slug])

### Works Example

[Works PT](http://macam-be.lndo.site/api/v1/pt/works)
[Works EN](http://macam-be.lndo.site/api/v1/en/works)

[Single Work PT](http://macam-be.lndo.site/api/v1/pt/works/[work-slug])
[Single Work EN](http://macam-be.lndo.site/api/v1/en/works/[work-slug])

### Team Members Example

[Team Members PT](http://macam-be.lndo.site/api/v1/pt/team-members)
[Team Members EN](http://macam-be.lndo.site/api/v1/en/team-members)

[Single Team Member PT](http://macam-be.lndo.site/api/v1/pt/team-members/[team-member-slug])
[Single Team Member EN](http://macam-be.lndo.site/api/v1/en/team-members/[team-member-slug])

### Random Work Example

[Random Work PT](http://macam-be.lndo.site/api/v1/pt/works?orderBy=random&perPage=1)
[Random Work EN](http://macam-be.lndo.site/api/v1/en/works?orderBy=random&perPage=1)

### Team Members Example

[Team Members PT](http://macam-be.lndo.site/api/v1/pt/team-members)
[Team Members EN](http://macam-be.lndo.site/api/v1/en/team-members)

[Single Team Member PT](http://macam-be.lndo.site/api/v1/pt/team-members/[team-member-slug])
[Single Team Member EN](http://macam-be.lndo.site/api/v1/en/team-members/[team-member-slug])
