A Node and React Boilerplate for fast development with CI/CD
- Node latest
- Install yarn using
npm i -g yarn
- If you sdd new packages, run
yarn
to update lockfile
docker-compose up
docker ps
to get container id of frappuccino_web and frappuccino_apidocker exec -it <container_id> npm run test
- Create a travis-ci account, add your repository and activate it in settings
- Add DOCKER_ID and DOCKER_PASSWORD in your travis-ci settings > environment variables
- Replace the docker id in .travis.yml with your docker id
Example: msintaha/frappuccino => yourid/frappuccino
- Add AWS environment variables like access_key and secret_key (for deploying in aws)
- For deploying to aws, uncomment the
deploy:
portion in the .travis.yml file and add in your bucket_name and app_name - Also follow steps from https://github.com/msintaha/multi-container-docker readme file for more details on spinning up AWS services. Instead of RDS, use MongoDB Atlas
.
├── Dockerrun.aws.json
├── LICENSE.md
├── README.md
├── client
│ ├── Dockerfile
│ ├── Dockerfile.dev
│ ├── LICENSE.md
│ ├── README.md
│ ├── nginx
│ │ └── default.conf
│ ├── package.json
│ ├── public
│ │ └── index.html
│ ├── src
│ │ ├── App.jsx
│ │ ├── app.scss
│ │ ├── assets
│ │ │ └── images
│ │ │ └── logo.png
│ │ ├── components
│ │ │ └── Header
│ │ │ └── index.jsx
│ │ ├── config.js
│ │ ├── index.jsx
│ │ ├── pages
│ │ │ ├── Home
│ │ │ │ ├── Home.spec.js
│ │ │ │ ├── _index.scss
│ │ │ │ └── index.jsx
│ │ │ └── _index.scss
│ │ ├── services
│ │ │ └── FlavorService.js
│ │ ├── test
│ │ │ ├── dom.js
│ │ │ └── helper.js
│ │ └── utils
│ │ └── http.js
│ ├── webpack.common.js
│ ├── webpack.dev.js
│ ├── webpack.prod.js
│ └── yarn.lock
├── docker-compose.yml
├── nginx
│ ├── Dockerfile
│ ├── Dockerfile.dev
│ └── default.conf
└── server
├── Dockerfile
├── Dockerfile.dev
├── auth
│ └── index.js
├── config
│ ├── index.js
│ ├── middlewares
│ │ └── authenticator.js
│ └── routes
│ ├── auth.js
│ ├── flavor.js
│ ├── index.js
│ └── user.js
├── flavor
│ ├── Flavor.js
│ ├── TEST
│ │ └── runner.js
│ └── index.js
├── index.js
├── keys.js
├── models.js
├── package.json
├── user
│ ├── User.js
│ └── index.js
└── utils
└── index.js
This project is licensed under the MIT license.
If you have any questions or comments, please create an issue.