Git Product home page Git Product logo

mern-server's Introduction

MERN Server

For those who wish to separate MERN Boilerplate into the client and server, this repo is for the server. This project is meant to be used alongside MERN Client.

Requirements

  • Operating System: MacOS or Linux
  • Node.js (I recommend installing with NVM)
  • Homebrew (to install MongoDB)

Quick Start

Setup

npm install

# Install MongoDB
brew tap mongodb/brew
brew install mongodb-community

Start the database

brew services start mongodb-community

for Development and Production

Start the server

npm start

Other Commands

npm test
npm run lint
npm run lint:fix
npm run test:verbose
npm run test:coverage
npm run test:watch

Setup Instructions

Note: This is now a github template project. This makes copying the contents of the project into a new repo very simple.

To setup your own project, you will need to copy the contents of this project into a new repo. You will need to update the content in these files to names of your project and yourself:

  • package.json: name, version, description, repository, author, bugs, homepage
  • LICENSE: (update to your preferred license)
  • this README.md

This is also a good time to go through the included libraries to add or remove features that you want.

After this you can commit the files into a new repository and push up to your github. You can now start updating files in your client to begin working on your own project!

Code Structure

- server
  - passport
  - database
  - routes
- config
- scripts

Technologies

Express - Node Application Framework

MongoDB - Document Database

Mongoose - MongoDB Framework

Passport - Authentication Framework

Ramda - Functional Library

ESLint - Code Linter

Jest - Testing Framework

mern-server's People

Contributors

djizco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mern-server's Issues

quick question

I haven't checked all the dependencies, but can we upgrade react 16.14 to 17.0? will it raise any other errors? I'm just trying to update some of the packages like react and react-dom.

Also, running mern-client gives an error in index.js.
the error is: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError {pathname}: Support for the experimental syntax 'jsx' isn't currently enabled (15:3).

Can you help me on this one if you are free?

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.