Giter VIP home page Giter VIP logo

react-redux-node-express-todo-list-boilerplate's Introduction

Full Stack React/Express Todo List Boilerplate

Technologies Used

React + 
Redux + 
React-router 4 + 
Redux-Form 6 + 
SCSS + 
Webpack 2 +
NodeJS +
ExpressJS +
KnexJS + 
PostgreSQL
FYI
  • The use of the $ character symbolizes that the following text needs to be entered in the terminal/powershell

Setup Notes

  • Install PostgreSQL on your machine if you don't already have it

  • Attempt running the command $ psql in your terminal/powershell

If you try to access psql locally and get an error like this:

psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Run this command to start your postgres server:   
$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
  • Then to make sure you have a database for yourself run this command:
$ createdb
  • Then attempt to run this command:
$ psql
  • If you see something like this you're good:
psql (9.6.3)
Type "help" for help.

akyunaakish=#
  • Exit from the psql repl with this command:
$ \q
  • Then create a database locally by running this command:
$ createdb todos
  • Now you should be able to re-enter into psql directly to your new databse:
$ psql todos
  • If you see something like this you're good:
psql (9.6.3)
Type "help" for help.

todos=#
  • Then make sure to create a .env file at the root of your application and update it with your DATABASE_URL containing the name of your database:
DATABASE_URL=postgres://localhost/todos
  • Now as long as you have a version of node at least 6.9.5 and npm version at least 5.0.0 you can install the project dependencies in the root directory of this project:
$ npm install
  • You'll also have to install the knex module globally on your machine:
$ npm install -g knex
  • Now you can update the schema of your local database to be compliant with this project:
$ knex migrate:latest
  • You should now be able to run the app. In one terminal/powershell tab or window run this command:
$ npm run client
  • In another terminal/powershell tab or window run this command:
$ npm run server
  • The client side of the application should now be available in the browser at:
localhost:8080

Building dist folder for production

  • Set your .env file's NODE_ENV variable equal to production
NODE_ENV=production
  • Run the build script
$ npm run build

react-redux-node-express-todo-list-boilerplate's People

Contributors

akyunaakish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-redux-node-express-todo-list-boilerplate's Issues

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.