Boilerplate MERN stack | New Media Development | Artevelde University of Applied Sciences
https://medium.com/@jorgemcdev/node-express-app-typescript-tslint-prettier-airbnb-husky-c42588cbcbe3
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.
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.
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
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}
Create a .env
-file under the react-client
folder following contents:
REACT_APP_API_URL=/api
Under the root of the project execute:
yarn install:all
Under the root execute:
yarn watch:all
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
Under the root execute:
yarn build:clean
Serve the compiled project:
yarn serve:build
- Node.js
- Express
- React
This project is licensed under the Apache License - see the LICENSE file for details