Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
palashmon committed May 28, 2020
1 parent 99d07ab commit f23a05a
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,32 @@

Implementing Authentication in a Nuxt.js App using [`mevn-auth-api`](https://github.com/palashmon/mevn-auth-api).

## Build Setup
## Spinning up a quick API

To save ourselves some time, we'll clone an API, which I have put together for this repo.
For detailed explanation on how to setup the api, check out [mevn-auth-api](https://github.com/palashmon/mevn-auth-api) repo.

Once all setup is done, we can start the API:

```bash
# launch API server
$ npm run start
```

## Run this Nuxt auth app

Once the API is up and running, we need to clone & install the dependencies for this app and then launch the app

```bash
# clone the app
git clone https://github.com/palashmon/nuxt-auth-app1.git
cd nuxt-auth-app1

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
# serve with hot reload at localhost:3002
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

0 comments on commit f23a05a

Please sign in to comment.