GridexX / mf-polycode

Micro-frontend adaptation of Polycode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


PolyCode - Backend
PolyCode - Frontend

Prepare yourself for coding interviews or learn new programming languages in minutes !

Website status

Key FeaturesHow To UseUseful CommandsCreditsRelated

Key Features

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm), installed on your computer. From your command line:

# Clone this repository
$ git clone git@gitlab.polytech.umontpellier.fr:do-polycode/frontend.git

# Go into the repository
$ cd frontend

# Create a .env file from .env.example
$ cp .env.example .env

# Install dependencies
$ npm install

# Run the app
$ npm start

WARNING Environment variables beginning with NEXT_PUBLIC_ are used at the build time. Do not forget to define them before building the application. They aren't required at runtime.

Note If you're using Linux Bash for Windows, see this guide or use node from the command prompt.

Useful Commands

Development server

Run npm run dev for a dev server. Navigate to http://localhost:3000/ (or http://localhost:3001/ if another app is already running on this port). The app will automatically reload if you change any of the source files.

Build

Run npm run build to build the project. The build artifacts will be stored in the .next/ directory.

Running unit tests

Run npm run test to execute the unit tests via Jest.

Use git hooks

In order to help you not commit unformatted / unlinted code, we use git hooks that you can install with npm run setup.
These hooks are setup with husky.
Furthermore, commit-lint is used to ensure you respects conventional commits.

Contributing

To contribute to this repository, there are a few guidelines :

  1. Create an issue with a descriptive title.
  2. Create an associated Merge Request.
  3. Perform modifications on your branch
  4. When you're done, ensure you check all the Mark of the DoD
  5. Great job, you're MR is ready to be reviewed 🚀

Credits

This software uses the following open source packages:

Related

polycode-backend - PolyCode API
polycode-ops - Operations management system for PolyCode

About

Micro-frontend adaptation of Polycode


Languages

Language:TypeScript 91.3%Language:CSS 7.9%Language:Smarty 0.5%Language:JavaScript 0.4%Language:Dockerfile 0.0%Language:Shell 0.0%