diff --git a/README.md b/README.md index 6b6ecad..7a45d7e 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ # RSSR Boilerplate -"We are no better than no one, We are not in competition with anyone, We want to be the best version of ourselves." +"We are not better than anyone, We are not in competition with anyone, We want to be the best version of ourselves." -welcome to RSSR. Being here is a sign of your professionalism. +Welcome to RSSR. Being here is a sign of your professionalism. -RSSR is a SSR boilerplate for React js and contian: +RSSR is a SSR boilerplate for React js and contains: - SSR (Server Side Rendering) - User Authentication Structure - SEO optimization utilities @@ -17,21 +17,21 @@ RSSR is a SSR boilerplate for React js and contian: - and more … ## Documentation -see [Documentation](https://github.com/rssr-org/RSSR-Documentation) in github. +See [Documentation](https://github.com/rssr-org/RSSR-Documentation) in github. -you can see also videos of RSSR team in [aparat](https://www.aparat.com/user/video/user_list/userid/722589/usercat/413997) and [youtube](https://www.youtube.com/channel/UCNkuorlYEWReSMglMp25yCw), . +You can also watch videos of RSSR team at [aparat](https://www.aparat.com/user/video/user_list/userid/722589/usercat/413997) and [youtube](https://www.youtube.com/channel/UCNkuorlYEWReSMglMp25yCw), . ## Usage Notice -core of RSSR is stable but need some changes to be released publicly. you can fork, review and star it but until the final release DONT USE it for your enterprise projects! +The core of RSSR is stable but needs some changes before it can be released publicly. You can fork, review and star it but DO NOT USE it for your enterprise projects until the final release! -To be informed, track here or [Telegram channel](https://t.me/rssr_org). +For more information, follow us at : [Telegram channel](https://t.me/rssr_org). ## Know more #### what is SSR? Server Side Rendering is a popular technique for rendering a normally -client-side only single page app (SPA) on the server and then sending +client-side single page app (SPA) on the server and then sending a fully rendered page to the client. The client’s JavaScript bundle can then take over and the SPA can operate as normal. One major benefit of using SSR is in having an app that can be crawled @@ -55,4 +55,4 @@ With every new project that you start, you will be repeating yourself. This is where boilerplates come in. A boilerplate is a template that you can clone and reuse for every project. - \ No newline at end of file + diff --git a/provider/server/development.js b/provider/server/development.js index bf7277f..00c0e9e 100644 --- a/provider/server/development.js +++ b/provider/server/development.js @@ -32,7 +32,7 @@ app.use(express.static(PUBLIC_NAME)) // create webpack compiler const compiler = webpack(config) -// make bundled project source files accessable from memory +// make bundled project source files accessible from memory app.use(webpackDevMiddleware(compiler, { publicPath: DIST_ROUTE, serverSideRender: true diff --git a/provider/server/production.js b/provider/server/production.js index 09a75b7..0f44833 100644 --- a/provider/server/production.js +++ b/provider/server/production.js @@ -19,7 +19,7 @@ const app = express() // cookie app.use(cookieParser()) -// make bundled final project source files accessable +// make bundled final project source files accessible app.use(DIST_ROUTE, express.static(DIST_PATH)) // load static files diff --git a/provider/setup/envLoader.js b/provider/setup/envLoader.js index 7886534..0d6cc5e 100644 --- a/provider/setup/envLoader.js +++ b/provider/setup/envLoader.js @@ -1,11 +1,11 @@ -// load environment varibale of .env file +// load environment variable of .env file const dotenv = require('dotenv') dotenv.config() -// load environment varibale of .env.[NODE_ENV] files +// load environment variable of .env.[NODE_ENV] files const fs = require('fs') const envPath = fs.readFileSync('.env.' + process.env.NODE_ENV); const envConfig = dotenv.parse(envPath) for (const k in envConfig) { process.env[k] = envConfig[k] -} \ No newline at end of file +} diff --git a/provider/setup/fileVersion.js b/provider/setup/fileVersion.js index 70a63be..519222c 100644 --- a/provider/setup/fileVersion.js +++ b/provider/setup/fileVersion.js @@ -23,7 +23,7 @@ switch (process.env.FILE_VERSION_TYPE) { global.FILE_VERSION = '?v=' + versionHash(); // random 24 char string break; case 'disable': - global.FILE_VERSION = ''; // with out version + global.FILE_VERSION = ''; // without version break; default: console.error('env.FILE_VERSION is not valid!', global.FILE_VERSION) diff --git a/provider/setup/rateLimit.js b/provider/setup/rateLimit.js index 2583a90..17648dd 100644 --- a/provider/setup/rateLimit.js +++ b/provider/setup/rateLimit.js @@ -1,4 +1,4 @@ -// limit request numbet +// limit request number const rateLimit = require("express-rate-limit"); /** @@ -14,9 +14,9 @@ module.exports = function (app) { const limiter = rateLimit({ windowMs: 60 * 1000, // 1 minutes - max: 20 // 20 request in each 1 minutes + max: 20 // 20 requests in each 1 minute }); - // apply to all requests with out load static file (becuse defined in above) + // apply to all requests without loading static file (because defined in above) app.use(limiter); -} \ No newline at end of file +} diff --git a/src/App/Home/Home.js b/src/App/Home/Home.js index b720e84..4241703 100644 --- a/src/App/Home/Home.js +++ b/src/App/Home/Home.js @@ -23,7 +23,7 @@ function Home(props) {
RSSR Boilderplate

- We are no better than no one, + We are no better than anyone else, We are not in competition with anyone, We want to be the best version of ourselves.
diff --git a/src/Component/Auth/SignIn/ForgetPasswordForm.js b/src/Component/Auth/SignIn/ForgetPasswordForm.js index d500cbb..b4642fc 100644 --- a/src/Component/Auth/SignIn/ForgetPasswordForm.js +++ b/src/Component/Auth/SignIn/ForgetPasswordForm.js @@ -22,7 +22,7 @@ function ForgetPasswordForm(props) { // method: 'POST', data: { "email": email, - // server most be add token number to end of url and redirect to it + // server must add token number to end of url and redirect to it "callback": window.location.origin + route.resetPassword('') } }) @@ -31,11 +31,11 @@ function ForgetPasswordForm(props) {

Recovery email sent.
- Please check your email inbox or smap and click on link. + Please check your email inbox or spam and click on link.
{email}
- Apply again if you do not receive it. + Apply again if you did not receive it.
); toast.success(message, {autoClose: false}); @@ -69,7 +69,7 @@ function ForgetPasswordForm(props) { value={email} onChange={(e) => setEmail(e.target.value)} required/> -
E-mail is not valid. please enter your account email like: sample@gmail.com
+
E-mail is not valid. please enter your email account like: sample@gmail.com