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 project with the following contents:
NMD_BASELINE='Like Graphics Love Code'
NODE_ENV={your node environment} (Development, Production or Staging)
NODE_SERVER_HOSTNAME={your ip-addres or domainname} (ex.: 127.0.0.1, 192.168.0.6)
NODE_SERVER_PORT={your port for the server} (ex.: 8080)
MONGODB_CONNECTION={your mongodb connection string}
SKIP_PREFLIGHT_CHECK=true
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 src/client
folder following contents:
SKIP_PREFLIGHT_CHECK=true
SASS_PATH=node_modules:src
Under the root execute:
yarn install
Under the root execute:
yarn server:start
Under the root execute:
yarn client:start
Under the root execute:
yarn start:all
The React-client must be build in order to visit the default route: http://{your domain}:{your port}/
. Run yarn client:build
to create a build
folder under the root of the client
folder.
Under the root execute:
yarn server:test
Under the root execute:
yarn server:lint
Under the root execute:
yarn client:start
Under the root execute:
yarn client:build
This command creates a directory build
under the client folder. Afster building, the build
folder will be copied to the dist\client
folder (under the root of the project).
Under the root execute:
yarn client:test
- [Swagger Ui for Express](http://{your domain}:{your port]/api/v1/docs/)
- [ReDoc](http://{your domain}:{your port]/docs/)
- Public
- Home: http://{your domain}:{your port]
- News: http://{your domain}:{your port]/news
- Post Detail: http://{your domain}:{your port]/news/{post id}
- Admin
- Home: http://{your domain}:{your port]/admin
- Blog List: http://{your domain}:{your port]/admin/blogs
- Blog Create: http://{your domain}:{your port]/admin/blogs/create
- Blog Edit: http://{your domain}:{your port]/admin/blogs/{blog id}/edit
- Categories List: http://{your domain}:{your port]/admin/categories
- Category Create: http://{your domain}:{your port]/admin/categories/create
- Category Edit: http://{your domain}:{your port]/admin/categories/{category id}/edit
- Posts List: http://{your domain}:{your port]/admin/posts
- Post Create: http://{your domain}:{your port]/admin/posts/create
- Post Edit: http://{your domain}:{your port]/admin/posts/{post id}/edit
- Node.js
- Express
- React
Philippe De Pauw - Waterschoot | drdynscript
This project is licensed under the Apache License - see the LICENSE file for details