/DeFentilz-Orbital

Orbital Apollo, Summer 2021

Primary LanguageTypeScript

BoNUS (DeFentilz-Orbital)

Orbital Apollo, Summer 2021

This is a Next.js project bootstrapped with create-next-app.

Development Setup

Install the latest npm and node versions on your local machine. You should have the latest npm and node versions installed on your local machine before running.

Install all dependencies using yarn for this project (ensure that package-lock.json which comes from npm package manager is not in the file) :

npm install yarn
yarn install

Environment Variables

to get the key to the AWS RDS, firebase, AWS S3, and other environment variables configuration for this project. Please contact either Amadeus or Simon

Scripts

To build the app for production:

yarn run build

To run the app in development development

yarn run dev

To run the app in production mode

yarn run start

To run the server app using nodemon for live update and auto-refresh

yarn run dev:backend

To run the server app using ts-node

yarn run start:backend

note : use -p PORT_NUMBER to change the default port, default port is 3000

To test frontend prior to committing code

yarn cypress run

Learn More

To learn more about the resources used, the following documentation might be helpful :

Front End

Backend

For backend documentation, please visit this link

Note The service worker is currently slightly problematic with the yarn dev, because once the page is reloaded, the new sw would be registered and hence would result in multiple sw registration within 1 web. The current workaround is to go to the dev > application > unregister the sw manually.