Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sean-bradley/seans-reactjs-nodejs-mongodb-boilerplate
A Dockerised ReactJS NodeJS MongoDB Boilerplate
https://github.com/sean-bradley/seans-reactjs-nodejs-mongodb-boilerplate
babel chai docker jasmine mocha mongodb nginx nodejs protractor react-boilerplate reactjs rest webpack
Last synced: 1 day ago
JSON representation
A Dockerised ReactJS NodeJS MongoDB Boilerplate
- Host: GitHub
- URL: https://github.com/sean-bradley/seans-reactjs-nodejs-mongodb-boilerplate
- Owner: Sean-Bradley
- License: isc
- Created: 2018-07-18T19:57:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T11:34:12.000Z (12 months ago)
- Last Synced: 2024-05-02T02:14:10.390Z (7 months ago)
- Topics: babel, chai, docker, jasmine, mocha, mongodb, nginx, nodejs, protractor, react-boilerplate, reactjs, rest, webpack
- Language: JavaScript
- Homepage:
- Size: 3.4 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Seans ReactJS NodeJS MongoDB Boilerplate
*Comes Dockerised and with Tests*
### NOTE: This project has many concepts. If you want a project that focuses mainly on just TypeScript with NodeJS and demonstrates a basic CRUD style REST API, then see https://github.com/Sean-Bradley/Seans-TypeScript-NodeJS-CRUD-REST-API-Boilerplate
## To start
`docker-compose up`
then visit
`http://localhost:3000`
## Note about docker toolbox on windows 10
After running `docker-compose up`, the site will be available at `http://192.168.99.100:3000`
You can change this to `http:/localhost:3000` by following these steps below.* Open VBox manager,
* Click the default machine used by docker
* Right click and choose Settings
* Network > Adapter 1 > Advanced > Port Forwarding
* Click "+" to add a new Rule
* Set Host IP to 127.0.0.1, Host Port 3000
* Guest IP to 192.168.99.100 and Guest Port 3000
* http:/localhost:3000![Screenshot](screenshot.png)
## To Test
Contains mocha, chai and enzyme tests
`cd nodejs`
`npm test`
## Protractor e2e tests
There is also the option to do e2e testing with protractor and jasmine.
Before you start, you need to install protractor
`cd nodejs`
`npm install -g protractor`
then, update the web driver
`npm run update-webdriver`
Now you can run
`npm run protractor`
![protractor screenshot](protractorScreenshot.png)