Coder Social home page Coder Social logo

profydev / prolog-app Goto Github PK

View Code? Open in Web Editor NEW
313.0 8.0 103.0 8.23 MB

The base application for the upcoming React Job Simulator. Transition from amateur to professional within a single project by working in a real-world work environment.

Home Page: https://profy.dev

License: Other

JavaScript 7.45% TypeScript 69.98% Shell 0.12% SCSS 22.45%
nextjs react

prolog-app's Introduction

This repository is part of the React Job Simulator where you work in a professional dev environment with advanced tooling and workflows. You implement tasks based on designs starting from small bug fixes to full-blown features. Basically, you learn a lot of the things hands-on that you usually only experience once you joined a professional React team.

The Application

The application is an error logging and monitoring tool similar to Sentry or Rollbar. You can find a deployed version of the main branch at prolog.profy.dev. Note: you have to click the "Dashboard" link in the upper right corner to see the app as shown in the screenshot below.

The running application

Codebase Tour

Watch this video for a tour through the codebase.

Codebase tour

Getting Started

1. Clone & Install

This project is built with Next.js, TypeScript, Cypress & SCSS modules among others. To start working on the project, first clone the repository on your local machine and install the dependencies.

npm install

2. Create .env File

copy the .env.template file to a new file called .env. This file contains the required environment variables that are injected by Next.js via the dotenv package.

3. Run Development Server

Finally, run the development server:

npm run dev

Now you can open http://localhost:3000 with your browser to see the application.

Recommended VS Code Extensions

This project uses tools like ESLint, Stylelint, and Prettier. To make the most of these tools it's recommended to install the corresponding extensions. For VS Code those are:

The official Stylelint extension might need some adjustment of your settings.json file. If it doesn't work out of the box try adding these lines:

"css.validate": false,
"less.validate": false,
"scss.validate": false,
"stylelint.validate": ["css", "scss"],

Additional extensions that I find very valuable are

Code Spell Checker GitLens SVG GitHub Copilot (paid)

Tests

This project is covered with Cypress tests. Although most tests for production apps are currently written with React Testing Library, Cypress is the best option to get started with testing. When you're new to testing the start can be very cumbersome and feel like you're in a completely new dev environment.

Cypress makes it much easier to get started with testing. You still have to get used to the new way of coding but thanks to its awesome UI debugging is easy and very similar to what you're used from your browser.

Cypress test

To run the Cypress tests on your local machine use this command:

npm run cypress

Storybook

Storybook is a great tool to document your components and visually test them in isolation. To open Storybook run

npm run storybook

prolog-app's People

Contributors

jkettmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prolog-app's Issues

Can't get submitted code to pass CI - failing at prettier tests...

Hi I am about to enroll in your course but I am having an issue getting my first pull request pass the CI part. Specifically the prettier part. I am not sure if this is the right place to ask, but no matter what I do, the build fails the prettier test. I have run 'prettier --write .' on my code base, and then run 'prettier --check .' and get the following response:

Screen Shot 2022-10-07 at 10 54 59 am

yet when I upload I get constant Prettier warnings and as a result the checks fail.

What am I doing wrong?

This is my current repo:
https://github.com/profydev/prolog-app-PaulHaze/tree/header-updates-prettier-fixes

Like I said, I am keen to enroll, but I am wondering if I can't even get the first part working, it doesn't look good for me for the rest of the course! :)

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.