Simple React Films Application
git clone https://github.com/ArturW1998/Films.git
- express 4.x
- graphql 15.x
- mongoose 5.x
- Then install the dependencies:
npm run server-install
-
Copy
.env.example
as.env
in the server directory -
Replace the database connection string in the .env file
- nodemon 2.x
npm run server
Open the web browser to http://localhost:3005/graphql
- pm2 4.x
npm run server:prod
- react ^17.x
- graphql 15.x
- react-apollo 3.x
- Then install the dependencies:
npm run client-install
- webpack-dev-server 3.x
npm run client
Open the web browser to http://localhost:3000/
- webpack 4.x
- babel 7.x
npm run client:build
- jest 26.x
- @testing-library/react 11.x
To run tests using Jest and React Testing Library:
npm test
in the client directory
- Then install the dependencies:
npm run install
-
Copy
.env.example
as.env
in the server directory -
Replace the database connection string in the .env file
npm run dev
Open the web browser to http://localhost:3000/
-
Replace the NODE_ENV value with the production value in the .env file in the server directory
-
Then run the build:
npm run build
- eslint 7.x
- stylelint 12.x
- prettier 1.x
To do the actual linting and formatting, run:
npm run lint
/ npm run lint:styles
/ npm run format
/ npm run format:styles
Please contribute to the project if you know how to make it better, including this README :)