alexgurr / wave_chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CloudWave Full Stack Code Challenge ~ Wave Chat

CloudWave have provided scaffolding for both the front and back end of the challenge, to save you time.

Front-end

Configuration

This application uses typescript and jest/react-testing-library. tsconfig.json has been pre-configured for the environment.

Some files may throw typescript errors due to empty placeholder files.

Linting

There's stylelint for linting SCSS files and eslint for linting code. You can lint the application with the lint and lint:styles commands in package.json.

Some files may throw linting warnings due to commented out scaffolding code.

UI & Components

We've added ant design for you to use, which comes with a selection of UI React components and style classes out of the box.

Read more here.

Routing

This challenge uses react-router-dom for routing.

Socket IO

To connect the client to the backend, you can use the code snippet below.

Read more here.

const socket = io(
  config.SOCKET_ENDPOINT,
  { transports: ['websocket', 'polling', 'flashsocket'] }
);

 

Back-end

Configuration

This application uses typescript and jest. tsconfig.json has been pre-configured for the environment.

Socket IO

The HTTP server with socket.io are already connected. The socket server will automatically run by default on port 3001.

Hot Reload

The backend server supports hot reload using nodemon. Any changes you make to files will automatically be updated if the server is started with the start:dev command.

About


Languages

Language:TypeScript 75.2%Language:HTML 9.8%Language:JavaScript 8.1%Language:SCSS 6.9%