Code Monkey home page Code Monkey logo

evolveu-c6-project-02's Introduction

evolveu-c6-project-02

Outline of the Superheros demo and the base for Re-jiji

Please add any other dependencies and installs below with instruction

"dependencies":

  • "cookie-parser": "~1.4.4",
  • "debug": "~2.6.9",
  • "express": "~4.16.1",
  • "http-errors": "~1.6.3",
  • "mongoose": "^5.11.11",
  • "morgan": "~1.9.1"

"devDependencies": {

  • "nodemon": "^2.0.7"

This project is a MERN (MongoDB, ExpressJS, ReactJS, Node.js) application made of two processes:

  1. an Express "server" providing API support for retrieving and submitting data from the backend
  2. a React "client" providing a web-based UI

This project also leverages a cloud-based instance of MongoDB for storing and retrieving data.

Working with this Codebase

Starting the Express server

In a command shell (CMD, PowerShell, Terminal, etc.) run the commands:

  1. cd server
  2. npm install
  3. npm run start

Starting the React client

In a command shell run the commands:

  1. cd client
  2. npm install
  3. npm run start

Your browser should open to http://localhost:4444.

Here are the command-line steps taken to create the initial version of this project:

$ mkdir rejiji
$ cd rejiji
$ npx create-react-app --use-npm client
$ npx express-generator server
$ rm -rf client/.git client/.gitignore client/yarn.k
$ rm server/.gitignore
$ cat <<- EOF > .gitignore
# DIRECTORIES TO IGNORE
**/.pnp/
**/build/
**/coverage/
**/jspm_packages/
**/logs/
**/node_modules/
**/pids/
**/typings/
**/.npm/

# FILES TO IGNORE
*.log
*.pid
*.pid.lock
*.seed
*.tgz
.DS_Store
.env.*.local
.env.local
.eslintcache
.node_repl_history
.yarn-integrity
.next
EOF
it commit -m "initialize the project"

Now, we additionally enabled nodemon to reload the server code when it gets edited. To do that:

$ cd server
$ npm install --save-dev nodemon
$ perl -p -i -e 's/"start": "node /"start": "nodemon /' package.json
$ git add package.json 
$ git commit -m "adding nodemon to speed development"
$ cd ..

evolveu-c6-project-02's People

Contributors

abdulwahid2 avatar chuongtang avatar dependabot[bot] avatar gwhagerty avatar lucienlvmi avatar rhaissamrv 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.