- API built with Node, GraphQL, Express, Sequelize (MySQL) and JWT Auth
- WebApp built with React and Redux along
(soon) with Server Side Rendering (SSR) / SEO friendly
- Prerequisites
- Clone repo
git clone git@github.com:dvaJi/ReaderFront.git ReaderFront
- Switch to
ReaderFront
directorycd ReaderFront
- Configurations
- Modify
/.env.example
to configurate the app (IMPORTANT) (you should rename it to/.env
)
- Modify
- Setup
- Webapp: Install dependencies
npm install
- Webapp: Install dependencies
- Development
- Run API
go to ReaderFront-API directory
andnpm start
, browse GraphiQL at http://localhost:8000/ - Run Webapp
npm start
, browse webapp at http://localhost:3000/
- Run API
- Production
- Run API
go to ReaderFront-API directory
andnpm run start:prod
, creates an optimized build inbuild
directory and runs the server - Run Webapp
npm build
, creates an optimized build inbuild
directory
- Run API
│── public static files
│── src
│ ├── blog module directory
│ │ ├── actions redux actions
│ │ ├── components presentational components
│ │ ├── containers container component
│ │ ├── reducers reducers
│ │ └── index.js page
│ ... others modules ...
│ ├── App.js
│ ├── Routes.js
│ ├── config.js
│ ├── rootReducer.js
│ ├── setupTest.js
│ ├── store
│ └── index.js
│── package.json
├── .gitignore
└── README.md
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing
MIT