A photography portfolio site built with React on the front-end. It uses GraphQL and Apollo Client to communicate with the back-end. The server exposes a single GraphQL endpoint and it is built with Apollo Server, Mongoose and MongoDB. It features JWT authentication and takes advantage of the AWS S3 cloud storage.
A photography portfolio site built with React on the front-end. It uses GraphQL and Apollo Client to communicate with the back-end. The server is built with Apollo Server, Mongoose and MongoDB and exposes a single GraphQL endpoint. It features JWT authentication and uses the AWS S3 cloud storage.
Install dependencies using
npm i && npm i --prefix src/client. This command will install both sever and client side dependencies.
To run the app, create
.env file in the root directory and provide:
PORT DATABASE_URL JWT_SECRET ADMIN_PASSWORD=<random_string> S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY S3_BUCKET_NAME S3_FOLDER_NAME=<random_string>
To boot the app in the development mode, run
npm run dev. Open http://localhost:3000 to view it in the browser.
The app uses
puppeteer to perfom integration tests in order to make sure all the separate parts of the app are working nicely with each other. To run tests in your development environment, run
npm run test script.
The app uses the
Travis CI as the CI provider. The script responsible for testing is
npm run test:ci.
To view the app in production, visit lostinapostcard.herokuapp.com.
Source Code: https://github.com/managervcf/lost-in-a-postcard
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
I have been using React JS in my projects for quite some time now and am used to managing routing in my app using the react-router package. I have always been keen on having as little dependencies in my apps as possible, so, I always felt perturbed by the use of this particular package in simpler apps which did not have complex routes.
In this post, I will share my own point of view about React Hooks, and as the title of this post implies, I am not a big fan.
One of the core ideas in functional programming is composition: building larger things from smaller things. The canonical example of this idea should be familiar with legos.