Skip to content

Commit

Permalink
Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
atulmy committed Nov 12, 2018
1 parent e249e82 commit 6bf8848
Show file tree
Hide file tree
Showing 30 changed files with 14,342 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Fullstack JavaScript Architecture
Opinionated project architecture for fullstack JavaScript applications. _(work in progress)_
# Full-Stack JavaScript Architecture (FSJA)
Opinionated project architecture for Full-Stack JavaScript Applications. _(work in progress)_

## Backend
- API
- Database
- Proxy

## Frontend
- WEB
- MOBILE
- Landing
- Web
- Mobile
- iOS
- Android

## Deployment
- Docker
4 changes: 4 additions & 0 deletions backend/api/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["env", "stage-2", "react"],
"plugins": ["transform-runtime"]
}
4 changes: 4 additions & 0 deletions backend/api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
public
data
16 changes: 16 additions & 0 deletions backend/api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PORT=8000
NODE_ENV=development

SECURITY_SECRET=
SECURITY_SALT_ROUNDS=10

MONGO_URL=mongodb://localhost:27017/thoughts

WEB_URL=http://localhost:3000
API_URL=http://localhost:8000

EMAIL_ON=0
EMAIL_TEST=[email protected]
EMAIL_HOST=smtp.mailgun.org
EMAIL_USER=
EMAIL_PASSWORD=
7 changes: 7 additions & 0 deletions backend/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
build/

.env

uploads/*
!uploads/.gitkeep
9 changes: 9 additions & 0 deletions backend/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:10
RUN mkdir -p /user/src/app
WORKDIR /user/src/app
COPY ./package*.json ./
RUN npm install --quiet
COPY . ./
RUN npm run build:prod
EXPOSE 8000
ENTRYPOINT ["node", "build/index.js"]
6 changes: 6 additions & 0 deletions backend/api/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignore": [
"build/*",
"node_modules/**/node_modules"
]
}
Loading

0 comments on commit 6bf8848

Please sign in to comment.