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
|
||||
|
||||
- [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>
|
||||
[](https://www.digitalocean.com/?refcode=dfabbc9bb922&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
|
||||
|
||||
## Getting Started
|
||||
|
||||
- [NodeJS](https://nodejs.org/en/)
|
||||
|
||||
```sh
|
||||
```bash
|
||||
npm i # Installs Dependencies
|
||||
```
|
||||
|
||||
### Serving Locally
|
||||
|
||||
```sh
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
|
@ -26,12 +22,11 @@ npm start
|
|||
|
||||
### Deploy
|
||||
|
||||
```sh
|
||||
npm run deploy
|
||||
```bash
|
||||
npm build:css
|
||||
npm start
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
```sh
|
||||
npm test
|
||||
```
|
||||
TODO
|
||||
|
|
|
@ -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",
|
||||
"scripts": {
|
||||
"postinstall": "mkdir -p ./dist",
|
||||
"start": "node app.js",
|
||||
"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:*",
|
||||
"start": "concurrently npm:serve:*",
|
||||
"build": "concurrently npm:build:*",
|
||||
"serve:handlebars": "node app.js",
|
||||
"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: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:svg": "svgdir2sprite ./src/svgs ./dist/spritesheet.svg",
|
||||
"build:images": "mkdir -p ./dist ./dist/images && cp ./src/images/* ./dist/images/",
|
||||
"test": "ava",
|
||||
"lint": "prettier --check .",
|
||||
"prepare": "husky install",
|
||||
"deploy": "docker compose up --build -d"
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.basking.monster:222/gaiety/pronoun-monster.git"
|
||||
"url": "git+ssh://git@gitlab.com/gaiety/pronoun-monster.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "Unlicense",
|
||||
"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",
|
||||
"devDependencies": {
|
||||
"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>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>
|
||||
|
||||
<script type="module" data-entity="pronounmonster" src="https://analytics.basking.monster/script.js"></script>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Reference in a new issue