Source code for https://chrisdriscol.com
I built this site with some technologies that I have come to really like, including (but not limited to):
- GraphQL
- React
- Relay Modern
- Docker
- Node
- MongoDB
- Flow
-
yarn start
- starts the development server with hot reloading enabled -
yarn update-schema
- updates graphql schema file -
yarn relay-compiler
- runs the relay compiler to generate files -
yarn lint
- runs linter to check for lint errors -
yarn bs
- bundles the code and starts the production server
.
├── ...
├── src # Source code for client and server
│ ├── server.js # Entry point for app
│ ├── client.js # Entry point for client app
│ ├── components # React components
│ │ └── ... # Other client app items
│ ├── graphql # GraphQL
│ │ ├── index.js # GraphQL entry point
│ │ └── ... # Other server app items
│ └── ... # Other app things
└── ... # Other project items
Among some other targets in the Makefile
there is one that will spin up the entire app locally:
$ make local
There are docker configurations for both development and production.
To run docker for development,
docker-compose -f docker-compose-development.yml build
docker-compose -f docker-compose-development.yml up
To run docker for production,
docker-compose build
docker-compose up