1595633220
Boilerplate for deno development. Mongo, Oak, React, Deno (MORD stack).
These are the planned updates of the project.
Since the deno and it’s modules are not stable yet, breaking changes could happen to this project!
git clone https://github.com/tamasszoke/deno-seed.git
Run npm install
at the frontend folder
Create .env.development
and .env.production
files inside frontend/
folder.
Use port 3002
for development and port 80
for production.
Example (include all of these):
HOST=0.0.0.0
PORT=3002
REACT_APP_PROTOCOL=http
REACT_APP_HOST=localhost
REACT_APP_PORT=5000
SKIP_PREFLIGHT_CHECK=true
CHOKIDAR_USEPOLLING=true
Located at frontend/.env.development
.
Note: if you change the ports change them in the dockerfiles too (root, backend).
Create .env.test
, .env.development
and .env.production
files inside backend/.env/
folder.
Use port 5000
for test, development and port 80
for production.
Example (include all of these):
APP_NAME=Deno Seed
IP=0.0.0.0
HOST=localhost
PORT=5000
PROTOCOL=http
CLIENT_PROTOCOL=http
CLIENT_HOST=localhost
CLIENT_PORT=3002
REDIS_HOST=redis
REDIS_PORT=6379
DB_HOST=[MLAB_DB_URL]
DB_NAME=[MLAB_BD_NAME]
DB_USER=[MLAB_DB_USERNAME]
DB_PASS=[MLAB_DB_PASSWORD]
EMAIL_ADDRESS=[GMAIL_ADDRESS]
EMAIL_PASS=[GMAIL_PASSWORD]
Located at backend/.env/.env.development
.
Note: if you change the ports change them in the dockerfiles too (root, backend).
Create MongoDB with a collection called users
.
I’ve used the free service provided by mLab.
Note: use the following commands at the root folder.
docker-compose -f docker-compose.development.yml up
[http://localhost:5000](http://localhost:5000/)
in browser for server[http://localhost:3002](http://localhost:3002/)
in browser for clientsh build.sh
docker-compose -f docker-compose.production.yml up -d
[http://localhost:80](http://localhost/)
in browserNote: run npm rebuild node-sass
inside the client container if asked.
Using separated docker-compose files for development and production.
Start: docker-compose -f docker-compose.development.yml up
Stop: docker-compose -f docker-compose.development.yml down
Start: docker-compose -f docker-compose.production.yml up
Stop: docker-compose -f docker-compose.production.yml down
Note: don’t forget to start your redis server or it will fallback to use the memory for the sessions.
sh dev.sh
at the root folder (or manually start the denon scripts)[http://localhost:5000](http://localhost:5000/)
(backend)[http://localhost:3002](http://localhost:3002/)
(frontend)sh build.sh
at the root folderdenon prod
at the build folder[http://localhost:80](http://localhost/)
Note: you may need to install Denon.
Using typescript .ts
files and the built-in formatter for deno.
Using the built-in testing library and Superoak with integration tests only, because of the higher ROI. The integration tests will cover the basic functions of the application, you can find them in the backend/app.test.ts
.
Using .env
files to set up the basics with the dotenv third party module. The main variable is the ENV which can be development or production. This will search for the correct env file to use in the backend/src/config/services/settings.ts
, defaults to test.
The middleware framework is the Oak library along with the Cors module to avoid CORS problems.
The session handled by the third party module, Session, it adds a middleware to the application, so we can get the session variables from any route by using context.session
.
The database is MongoDB using the Mongo (deno_mongo) module. Created a reusable class which is connecting to the database only once, and using that connection for the future queries. Validating the user schema with the Validasaur module.
Using the built-in logger, created two main types, the default and the test, which is only logging critical levels, to hide debug logs during the tests.
The passwords are hashed with salt (different for every user), using the Bcrypt library.
The routing is in the following format: api/service/type/action For example, to login, use: api/auth/local/login
Using Denon, the scripts are format
, test
, start
, prod
.
Name | Version |
---|---|
oak | main branch |
bcrypt | 0.2.3 |
mongo | 0.9.1 |
log | 0.61.0 |
session | master branch |
dotenv | master branch |
validasaur | 0.9.4 |
deno-smtp | tamasszoke fork |
cors | master branch |
superoak | 2.0.0 |
Unfortunately some packages are not refreshing their releases actively (or not published any), so I had to use the master branch of them.
Name | Version |
---|---|
@material-ui/core | ^4.4.2 |
@material-ui/icons | ^4.4.1 |
@material-ui/styles | ^4.4.1 |
animate.css | ^3.7.2 |
axios | ^0.19.0 |
node-sass | ^4.12.0 |
react | ^16.9.0 |
react-dom | ^16.9.0 |
react-material-ui-form-validator | ^2.0.9 |
react-notifications-component | ^2.0.7 |
react-redux | ^7.1.1 |
react-router-dom | ^5.0.1 |
react-scripts | 3.1.1 |
redux | ^4.0.4 |
redux-persist | ^6.0.0 |
Author: tamasszoke
GitHub: https://github.com/tamasszoke/deno-seed
#deno #javascript #react #docker
1598839687
If you are undertaking a mobile app development for your start-up or enterprise, you are likely wondering whether to use React Native. As a popular development framework, React Native helps you to develop near-native mobile apps. However, you are probably also wondering how close you can get to a native app by using React Native. How native is React Native?
In the article, we discuss the similarities between native mobile development and development using React Native. We also touch upon where they differ and how to bridge the gaps. Read on.
Let’s briefly set the context first. We will briefly touch upon what React Native is and how it differs from earlier hybrid frameworks.
React Native is a popular JavaScript framework that Facebook has created. You can use this open-source framework to code natively rendering Android and iOS mobile apps. You can use it to develop web apps too.
Facebook has developed React Native based on React, its JavaScript library. The first release of React Native came in March 2015. At the time of writing this article, the latest stable release of React Native is 0.62.0, and it was released in March 2020.
Although relatively new, React Native has acquired a high degree of popularity. The “Stack Overflow Developer Survey 2019” report identifies it as the 8th most loved framework. Facebook, Walmart, and Bloomberg are some of the top companies that use React Native.
The popularity of React Native comes from its advantages. Some of its advantages are as follows:
Are you wondering whether React Native is just another of those hybrid frameworks like Ionic or Cordova? It’s not! React Native is fundamentally different from these earlier hybrid frameworks.
React Native is very close to native. Consider the following aspects as described on the React Native website:
Due to these factors, React Native offers many more advantages compared to those earlier hybrid frameworks. We now review them.
#android app #frontend #ios app #mobile app development #benefits of react native #is react native good for mobile app development #native vs #pros and cons of react native #react mobile development #react native development #react native experience #react native framework #react native ios vs android #react native pros and cons #react native vs android #react native vs native #react native vs native performance #react vs native #why react native #why use react native
1621250665
Looking to hire dedicated top Reactjs developers at affordable prices? Our 5+ years of average experienced Reactjs developers comprise proficiency in delivering the most complex and challenging web apps.
Hire ReactJS developers online on a monthly, hourly, or full-time basis who are highly skilled & efficient in implementing new technologies and turn into business-driven applications while saving your cost up to 60%.
Planning to** outsource React web Development services from India** using Reactjs? Or would you like to hire a team of Reactjs developers? Get in touch for a free quote!
#hire react js developer #react.js developer #react.js developers #hire reactjs development company #react js development india #react js developer
1627031571
The most awaited version of React 18 is finally out now. Its team has finally revealed the alpha version of React 18 and its plan, though the official launch is still pending. This time the team has tried something and released the plan first to know their user feedback because the last version of React 17 was not that much appreciated among developers.
According to Front-end Frameworks Survey, React JS has ranked top in the list of most loved frameworks. Thus, the developer communities expect a bit higher from the framework, so they are less appreciative of the previous launch.So, this time React 18 will be a blast. For beginners, the team is working on a new approach. They have called a panel of experts, library authors, educators, and developers to take part in a working group. Initially, it will be a small group.
I am not a part of this release but following the team on their GitHub discussion group. After gathering the information from there, I can say that they have planned much better this time.
React 17 was not able to meet the developer's community. The focus was all primarily centered on making it easier to upgrade React itself. React 18 release will be the opposite. It has a lot of features for react developers.
#hire react js developers #hire react js developers india #react developers india #react js developer #react developer #hire react developers
1625803880
Looking to hire top Reactjs developers at affordable prices? Our 5+ years of average experienced Reactjs developers comprise proficiency in delivering the most complex and challenging web apps.
Hire ReactJS developers online on a monthly, hourly, or full-time basis who are highly skilled & efficient in implementing new technologies and turn into business-driven applications while saving your cost up to 60%.
Planning to outsource React Js web Development services using Reactjs? Or would you like to hire a team of Reactjs developers? Get in touch for a free quote!
#hire react js developers #hire reactjs developers #hire react js developer #hire react.js developer #hire react.js developers #hire react developer
1616494982
Being one of the emerging frameworks for app development the need to develop react native apps has increased over the years.
Looking for a react native developer?
Worry not! WebClues infotech offers services to Hire React Native Developers for your app development needs. We at WebClues Infotech offer a wide range of Web & Mobile App Development services based o your business or Startup requirement for Android and iOS apps.
WebClues Infotech also has a flexible method of cost calculation for hiring react native developers such as Hourly, Weekly, or Project Basis.
Want to get your app idea into reality with a react native framework?
Get in touch with us.
Hire React Native Developer Now: https://www.webcluesinfotech.com/hire-react-native-app-developer/
For inquiry: https://www.webcluesinfotech.com/contact-us/
Email: sales@webcluesinfotech.com
#hire react native developers #hire dedicated react native developers #hire react native developer #hiring a react native developer #hire freelance react native developers #hire react native developers in 1 hour