Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctuanle/work-shop
Web application that allows users to manage their products and to communicate with their clients.
https://github.com/ctuanle/work-shop
docker ejs express jest mysql nodejs sequelize typescript
Last synced: 4 days ago
JSON representation
Web application that allows users to manage their products and to communicate with their clients.
- Host: GitHub
- URL: https://github.com/ctuanle/work-shop
- Owner: ctuanle
- License: mit
- Created: 2021-05-25T02:52:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T23:58:40.000Z (almost 3 years ago)
- Last Synced: 2023-03-04T00:57:24.041Z (over 1 year ago)
- Topics: docker, ejs, express, jest, mysql, nodejs, sequelize, typescript
- Language: TypeScript
- Homepage:
- Size: 2.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### WorkShop
Web application that allows users to manage their products and to communicate with their clients.#### Installation
npm install
#### Config your .env
You can follow the sample at sample.env and then create the database if it doesn't exist (empty one will be fine).
#### Deploy on localhost
npm start
or with Docker.
npm run build
docker build -t work-shop .
docker run -dp 3000:3000 work-shopBy default, there aren't any admin users. Sign up a new normal user, and then update their role by interacting directly with your database.
#### Deploy in dev mode
npm run dev
or with Docker (in my case: in node:12-alpine and on port 3000)
docker run -dp 3000:3000 -w /app -v "$(pwd):/app" node:12-alpine sh -c "npm install && npm run dev"
or with docker-compose (change env var in docker-compose.yml if necessary):
docker-compose up -d
In case you might need, inside a docker, you can use "host.docker.internal" to refer to your host machine's localhost.