Compare commits
2 commits
main
...
monsterize
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e94ef76834 | ||
![]() |
15c59ee14c |
6 changed files with 14 additions and 51 deletions
|
@ -1 +1 @@
|
||||||
nodejs latest
|
nodejs 19.7.0
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -1,12 +0,0 @@
|
||||||
# build with nodejs
|
|
||||||
FROM node:16.17.0-bullseye-slim
|
|
||||||
ENV NODE_ENV production
|
|
||||||
WORKDIR /app
|
|
||||||
COPY . /app
|
|
||||||
RUN mkdir -p dist node_modules
|
|
||||||
RUN chown -R node:node .
|
|
||||||
USER node
|
|
||||||
RUN NODE_ENV=development npm ci
|
|
||||||
RUN npm run postinstall
|
|
||||||
RUN npm run prestart
|
|
||||||
CMD ["node", "./app.js"]
|
|
19
README.md
19
README.md
|
@ -1,23 +1,19 @@
|
||||||
# Pronoun Monster
|
# Pronoun Monster
|
||||||
|
|
||||||
- [Site Status](https://status.basking.monster/status/pronoun-monster)
|
|
||||||
- Express Service: 
|
|
||||||
- Express Service: 
|
|
||||||
- [View site](https://pronoun.monster/)
|
|
||||||
|
|
||||||
Inspired by [@morganastra](https://twitter.com/morganastra)'s [pronoun.is](https://github.com/witch-house/pronoun.is) project</p>
|
Inspired by [@morganastra](https://twitter.com/morganastra)'s [pronoun.is](https://github.com/witch-house/pronoun.is) project</p>
|
||||||
|
[](https://www.digitalocean.com/?refcode=dfabbc9bb922&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
- [NodeJS](https://nodejs.org/en/)
|
- [NodeJS](https://nodejs.org/en/)
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
npm i # Installs Dependencies
|
npm i # Installs Dependencies
|
||||||
```
|
```
|
||||||
|
|
||||||
### Serving Locally
|
### Serving Locally
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -26,12 +22,11 @@ npm start
|
||||||
|
|
||||||
### Deploy
|
### Deploy
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
npm run deploy
|
npm build:css
|
||||||
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
```sh
|
TODO
|
||||||
npm test
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
container_name: pronoun-monster
|
|
||||||
image: pronoun-monster
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "9995:3000"
|
|
18
package.json
18
package.json
|
@ -5,35 +5,29 @@
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "mkdir -p ./dist",
|
"postinstall": "mkdir -p ./dist",
|
||||||
"start": "node app.js",
|
"start": "concurrently npm:serve:*",
|
||||||
"prestart": "npm run start:css && npm run start:svg && npm run start:images",
|
|
||||||
"start:css": "tailwindcss -i ./src/app.css -o ./dist/app.css",
|
|
||||||
"start:svg": "npm run build:svg",
|
|
||||||
"start:images": "npm run build:images",
|
|
||||||
"serve": "concurrently npm:serve:*",
|
|
||||||
"build": "concurrently npm:build:*",
|
"build": "concurrently npm:build:*",
|
||||||
"serve:handlebars": "node app.js",
|
"serve:handlebars": "node app.js",
|
||||||
"serve:css": "tailwindcss -i ./src/app.css -o ./dist/app.css --watch",
|
"serve:css": "tailwindcss -i ./src/app.css -o ./dist/app.css --watch",
|
||||||
"serve:svg": "nodemon --watch 'src/svgs/*' -e svg --exec 'npm run build:svg'",
|
"serve:svg": "nodemon --watch 'src/svgs/*' -e svg --exec 'npm run build:svg'",
|
||||||
"serve:image": "nodemon --watch 'src/images/*' --exec 'npm run build:images'",
|
"serve:svg": "nodemon --watch 'src/images/*' --exec 'npm run build:images'",
|
||||||
"build:css": "tailwindcss -i ./src/app.css -o ./dist/app.css",
|
"build:css": "tailwindcss -i ./src/app.css -o ./dist/app.css",
|
||||||
"build:svg": "svgdir2sprite ./src/svgs ./dist/spritesheet.svg",
|
"build:svg": "svgdir2sprite ./src/svgs ./dist/spritesheet.svg",
|
||||||
"build:images": "mkdir -p ./dist ./dist/images && cp ./src/images/* ./dist/images/",
|
"build:images": "mkdir -p ./dist ./dist/images && cp ./src/images/* ./dist/images/",
|
||||||
"test": "ava",
|
"test": "ava",
|
||||||
"lint": "prettier --check .",
|
"lint": "prettier --check .",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install"
|
||||||
"deploy": "docker compose up --build -d"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@git.basking.monster:222/gaiety/pronoun-monster.git"
|
"url": "git+ssh://git@gitlab.com/gaiety/pronoun-monster.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://git.basking.monster/gaiety/pronoun-monster/issues"
|
"url": "https://gitlab.com/gaiety/pronoun-monster/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://pronoun.monster/",
|
"homepage": "https://gitlab.com/gaiety/pronoun-monster#readme",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.2.0",
|
||||||
|
|
|
@ -14,6 +14,4 @@
|
||||||
<p>Inspired by <a href="https://twitter.com/morganastra" class="font-bold">@morganastra</a>'s <a href="https://github.com/witch-house/pronoun.is" class="font-bold">pronoun.is</a> project</p>
|
<p>Inspired by <a href="https://twitter.com/morganastra" class="font-bold">@morganastra</a>'s <a href="https://github.com/witch-house/pronoun.is" class="font-bold">pronoun.is</a> project</p>
|
||||||
<p>Background Photo by <a href="https://unsplash.com/@jazminantoinette?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="font-bold">Jazmin Quaynor</a> on <a href="https://unsplash.com/photos/bm9zWKi_c9Y?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="font-bold">Unsplash</a></p>
|
<p>Background Photo by <a href="https://unsplash.com/@jazminantoinette?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="font-bold">Jazmin Quaynor</a> on <a href="https://unsplash.com/photos/bm9zWKi_c9Y?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="font-bold">Unsplash</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="module" data-entity="pronounmonster" src="https://analytics.basking.monster/script.js"></script>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Reference in a new issue