Code Monkey home page Code Monkey logo

react-starter's Introduction

React Starter

Simple starter project including React web app, React Native app and Express Rest API server

What’s Inside?

  • Rest API Express Server
    • Mongo DB
    • DB Seeding
    • Migrations
    • Auth using JWT
    • Logging (bunyan & morgan)
    • Env variables using .env
    • Cors, Compression, Helmet
    • E-mail service
    • Request validation (joi)
    • Basic user functionality (signup, login, logout, reset password, activate user)
  • React Web App Starter
    • Auth using JWT
    • Ant.Design
    • Axios
    • i18n (i18next)
    • Redux (saga, persist, logger, Reselect)
    • react-router
    • create-react-app
    • Basic user functionality (signup, login, logout, reset password, activate user)
  • React Native Starter
    • Auth using JWT
    • Axios
    • Redux (saga, persist, logger, Reselect)
    • React Navigation
    • Form validation
    • Alert service
    • Basic user functionality (signup, login, logout, reset password)

Getting Started

Clone this repository:

git clone https://github.com/Kamahl19/react-starter my-app
cd my-app
rm -rf .git
git init

This project uses dotenv for setting environmental variables during development. Simply copy .env.example in both /backend and /frontend, rename it to .env and add your env vars as you see fit.

Seed DB & Start the backend

cd backend
yarn install
yarn seed
yarn start

Start the frontend

cd frontend
yarn install
yarn start

Start the React native

cd rnmobile
yarn install
react-native run-ios

Deployment

Build frontend

cd frontend
yarn build

Deploy app to Heroku

cd backend
heroku login
heroku create my-app
git init
heroku git:remote -a my-app
git add .
git commit -am "initial commit"
git push heroku master

Login credentials

After running yarn seed you can login with these credentials

react-starter's People

Contributors

kamahl19 avatar marcelmokos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.