Skip to content

Commit 6bf8848

Browse files
committed
Bootstrap
1 parent e249e82 commit 6bf8848

30 files changed

+14342
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
# Fullstack JavaScript Architecture
2-
Opinionated project architecture for fullstack JavaScript applications. _(work in progress)_
1+
# Full-Stack JavaScript Architecture (FSJA)
2+
Opinionated project architecture for Full-Stack JavaScript Applications. _(work in progress)_
33

44
## Backend
5+
- API
6+
- Database
7+
- Proxy
58

69
## Frontend
7-
- WEB
8-
- MOBILE
10+
- Landing
11+
- Web
12+
- Mobile
13+
- iOS
14+
- Android
915

1016
## Deployment
17+
- Docker

backend/api/.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["env", "stage-2", "react"],
3+
"plugins": ["transform-runtime"]
4+
}

backend/api/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
build
3+
public
4+
data

backend/api/.env.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PORT=8000
2+
NODE_ENV=development
3+
4+
SECURITY_SECRET=
5+
SECURITY_SALT_ROUNDS=10
6+
7+
MONGO_URL=mongodb://localhost:27017/thoughts
8+
9+
WEB_URL=http://localhost:3000
10+
API_URL=http://localhost:8000
11+
12+
EMAIL_ON=0
13+
EMAIL_TEST=someone@example.com
14+
EMAIL_HOST=smtp.mailgun.org
15+
EMAIL_USER=
16+
EMAIL_PASSWORD=

backend/api/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
build/
3+
4+
.env
5+
6+
uploads/*
7+
!uploads/.gitkeep

backend/api/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:10
2+
RUN mkdir -p /user/src/app
3+
WORKDIR /user/src/app
4+
COPY ./package*.json ./
5+
RUN npm install --quiet
6+
COPY . ./
7+
RUN npm run build:prod
8+
EXPOSE 8000
9+
ENTRYPOINT ["node", "build/index.js"]

backend/api/nodemon.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ignore": [
3+
"build/*",
4+
"node_modules/**/node_modules"
5+
]
6+
}

0 commit comments

Comments
 (0)