Giter Site home page Giter Site logo

deepsmile_frontend's Introduction

FRONT---DeepSmile-Website---Next.js

Table of contents

General information

This repository features DeepSmile website

Technologies

This project is created with:

  • Next.js
  • React
  • Typescript
  • Apollo
  • ChakraUI
  • git-secret
  • Sentry
  • env-cmd
  • next-translate

Setup

git-secret:

  1. Install git-secret:
$ brew install git-secret

Linux: https://git-secret.io/installation

  1. Generate a gpg-key
$ gpg --gen-key
  1. Export your public key
$ gpg --export -a [email protected] > public_key.gpg
  1. Send your public key to someone who has already access

(If you are that someone and wish to add a user to the repository)

$ gpg --import public_key.gpg
$ git secret tell [email protected]
  1. Decrypt files:
$ git secret reveal
  1. Encrypt files: (if you modified .env-cmdrc.json or added new users)
$ git secret hide

Sentry:

Your .env-cmdrc.json must contain the following values for both env (prod and preprod) :

# sentry dns
"NEXT_PUBLIC_SENTRY_DSN": ""

# organization name
"SENTRY_ORG": ""

# project name
"SENTRY_PROJECT": ""

# https://sentry.io/settings/account/api/auth-tokens/
"SENTRY_AUTH_TOKEN": ""

next-translate:

next-translate builds the next.js pages directory including translations in those pages . That is why we need to develop our app in a pages_ directory. The pages directory shall not be pushed to the repository since it will be generated by CI.

Run project:

To run this project, install it locally using npm:

Install dependencies:

$ npm install

Run in dev mode:

$ npm run dev

Build and start:

Preprod:

$ npm run build

Prod:

$ npm run build:prod

Then:

$ npm start

Tests:

$ npm run test

CI/CD

Please find below a diagram describing our CI/CD strategy

CI/CD diagram

deepsmile_frontend's People

Contributors

jcodewriter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.