Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gergogy/hellsupply

Inhouse HELL ordering
https://github.com/gergogy/hellsupply

Last synced: 1 day ago
JSON representation

Inhouse HELL ordering

Awesome Lists containing this project

README

        

# hellsupply

> Inhouse HELL ordering

## Start Docker

```
docker-compose down
docker-compose up -d
```

## Login with admin, admin into MongoDB
```
node login
```

## Build Setup

``` bash
# install dependencies
$ npm run install

# start MongoDB on port 31000
$ docker-compose up

# serve with hot reload at localhost:8787
$ 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).

Manually generating password: `node generatePasswordHash.js`

Add superadmin user:
```nodejs
node superadmin
```

Example user with admin role ([email protected]:admin)
```
{
firstName: 'It's A',
lastName: 'Admin',
email: '[email protected]',
password: '$2b$15$gHNKCQPydZ/R.ZH/nqOmm.zGalFn/UuYEV4tUkfsGHBpIgQx9tUyG',
role: 'admin',
active: true
}
```

Add demo product:
```nodejs
node demoProducts
```

Add demo users:
```nodejs
node demoUsers
```