Compare commits
14 commits
monsterize
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
268e054cc8 | ||
![]() |
b5548f373d | ||
![]() |
536e55b84d | ||
![]() |
6ac4de80cf | ||
![]() |
aaa5d23200 | ||
![]() |
fc94884114 | ||
![]() |
64ebd3d59d | ||
![]() |
28f496f393 | ||
![]() |
70a982361a | ||
![]() |
d88d3c3685 | ||
![]() |
655acdfd3e | ||
![]() |
9d74ec41b9 | ||
![]() |
71cf08fd7c | ||
![]() |
d5c7862294 |
6 changed files with 51 additions and 14 deletions
|
@ -1 +1 @@
|
||||||
nodejs 19.7.0
|
nodejs latest
|
||||||
|
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# 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,19 +1,23 @@
|
||||||
# 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/)
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
npm i # Installs Dependencies
|
npm i # Installs Dependencies
|
||||||
```
|
```
|
||||||
|
|
||||||
### Serving Locally
|
### Serving Locally
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -22,11 +26,12 @@ npm start
|
||||||
|
|
||||||
### Deploy
|
### Deploy
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
npm build:css
|
npm run deploy
|
||||||
npm start
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
TODO
|
```sh
|
||||||
|
npm test
|
||||||
|
```
|
||||||
|
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
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,29 +5,35 @@
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "mkdir -p ./dist",
|
"postinstall": "mkdir -p ./dist",
|
||||||
"start": "concurrently npm:serve:*",
|
"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:*",
|
||||||
"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:svg": "nodemon --watch 'src/images/*' --exec 'npm run build:images'",
|
"serve:image": "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": "git+ssh://git@gitlab.com/gaiety/pronoun-monster.git"
|
"url": "ssh://git@git.basking.monster:222/gaiety/pronoun-monster.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitlab.com/gaiety/pronoun-monster/issues"
|
"url": "https://git.basking.monster/gaiety/pronoun-monster/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/gaiety/pronoun-monster#readme",
|
"homepage": "https://pronoun.monster/",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.2.0",
|
||||||
|
|
|
@ -14,4 +14,6 @@
|
||||||
<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