https://github.com/shanujha/microservice
v1.0.1 out now! With built in Docker Support!
https://github.com/shanujha/microservice
docker microservice setup-eslint
Last synced: 4 months ago
JSON representation
v1.0.1 out now! With built in Docker Support!
- Host: GitHub
- URL: https://github.com/shanujha/microservice
- Owner: shanujha
- License: mit
- Created: 2021-06-09T16:27:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-19T05:54:36.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T01:28:52.685Z (about 1 year ago)
- Topics: docker, microservice, setup-eslint
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Get Started
Change the `PORT` and `DATABASE` values in the `.env`
### Docker supports
This template has docker support built in. To use, modify the `DATABASE` and `PORT` parameters in the `.env` and `Dockerfile`. Then edit the default username and service name in `docker.sh`.
Then run
$ docker.sh
### Setup ESlint (Optional)
To setup `eslint` on your machine
npm i -g eslint
Then setup `eslint` in project
ESLint --init
### ESLint Setup guide
Q. How would you like to use ESLint?
A. find problems, errors
Q. What type of modules does your project use?
A. CommonJS
Q. Which framework does your project use?
A. None of these
Q. Does your project use typescript?
A. No
Q. Where does your code run?
A. Node
Q. What format do you want the configuration file in?
A. JSON
Q. Would you like to install dependencies now?
A. Yes
### Script
# microservice.bat
git clone https://github.com/shanujha/microservice.git .
rmdir .git /S /Q
git init
git add .
git commit -m "initial commit"
@echo Next steps
@echo Change the package name in package.json
@echo Change the PORT and DATABASE in .env
@echo Add origin to this repository
@echo git remote add origin your_repo_url
@echo I will now install npm packages
pause
npm i