Skip to content

MaartenOste/coacherr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mern-boilerplate

Boilerplate MERN stack | New Media Development | Artevelde University of Applied Sciences

Rules

https://medium.com/@jorgemcdev/node-express-app-typescript-tslint-prettier-airbnb-husky-c42588cbcbe3

Briefing

The official briefing of this project was not specific: Make a MERN-stack application. We could chose out own topic. My idea was to make an app for football coaches.

Result

The application is used by football coaches. A coach can make formations and share them with his team. This makes it possible to give a detailled overview on what it is he expects. For each of these formations there's the possibility to add statistics to reflect on later. Coaches and players are part of a club. A Club can manage the players and handle join requests.

NMD MERN Template

Template for the course Mobile Development II specialisation New Media Development in the department Graphical and Digital Media within Artevelde University College Ghent.

Template consists of:

  • Node.js
  • Express
  • React

Getting Started

MongoDb

https://cloud.mongodb.com/

Server

Create a .env-file under the root of the server with the following contents:

NMD_BASELINE='Like Graphics Love Code' 
NODE_DOCS={generating documentation for Api} (true or false) 
NODE_ENV={your node environment} (development, production or staging)  
NODE_SERVER_HOST={your ip-addres or domainname} (ex.: 127.0.0.1, 192.168.0.6)  
NODE_SERVER_PORT={your port for the server} (ex.: 8080)  
NODE_SERVER_PROTOCOL={your port for the server} (ex.: 8080)  
MONGODB_CONNECTION={your mongodb connection string}
AUTH_BCRYPT_SALT={your salt value for passwords} (ex.: 10) 
AUTH_JWT_SECRET={your JWT secret} (ex.: gdm_nmd_mobdev2) 
AUTH_JWT_SESSION={your JWT session true or false} 
AUTH_FACEBOOK_CLIENT_ID={your Facebook Client id} 
AUTH_FACEBOOK_CLIENT_SECRET={your Facebook Client secret} 

React Client

Create a .env-file under the react-client folder following contents:

REACT_APP_API_URL=/api

Installing

Under the root of the project execute:

yarn install:all

Scripts

Running the Express-server and React-client in development side-by-side

Under the root execute:

yarn watch:all

Running the Express-server with integrated React-client in development

Under the root execute:

First build the React-client (you have to do this after changes in de react-client code)

yarn build:react-client

Start the Express-server in development

yarn watch

Build the complete project

Under the root execute:

yarn build:clean

Serve the compiled project:

yarn serve:build

API Specification

Client

Built With

  • Node.js
  • Express
  • React

Authors

Maarten Oste

License

This project is licensed under the Apache License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published