Coder Social home page Coder Social logo

fe-mocktest-binar's Introduction


Sedana Yoga - Frontend Mock Test

logo

A repository for completing Binar Career Development Program.

About The Project

In this mock test, the task was pretty straight forward. We have to translate the backend (provided by Binar) into a frontend design and fully functional including cosuming the API of User (login and register) and Product (CRUD functionality). The site is fully up and running in this url https://mocktest-binar.vercel.app/

Login Register Products Create Edit Delete Responsive

(back to top)

Built With

The following lists show my development stack:

Frontend Stack

Backend Stack

Development Tools:

(back to top)

What I've learnt?

  • Integration NextJS with RESTful API => in the past, I almost used Firebase for storing database and authentication, along with the CRUD method provided by Firestore. In this project, it's a bit different, I was using API documentation to connect with User Auth and Product CRUD which needs auth token to implement.
  • ESLint Config for Deployment => I learn about how to mitigate issues in deployment in this case I'm using Vercel, since its connect smoothly with GitHub and NextJS.
  • Learn Best Practice of GitFlow => Having 2 branches dev and main in github seems very convinient and more cleaner repository. And I connect them with Vercel which will treat dev as Preview Site and main as Production Site.
  • Mitigate CORS issue => was getting CORS issues in PUT and DELETE method but I managed to get it solved by setting my next config, so it's good stuff to know, not aware of this possibility in the past.

(back to top)

Getting Started

The Feature

  • CRUD Functionality of Products.
  • User Authentication with token
  • Fully Responsive Site
  • NextJS is implemented but only using CSR (Client Site Rendering)
  • Global State is used in this project using React Context API

Prerequisites

If you want to edit the code, you need to have nodejs and NPM.

Install all dependencies by this command if you already get node and npm installed in your system.

cd <repository-folder>
npm install

(back to top)

Usage

  • Set your terminal directory to repository folder
  • Start the Next Server by running this command
    npm run dev
  • Open localhost:3000 in your browser

(back to top)

Space for Improvement

  • Cookies or Session implementation (if we refresh the page, it won't keep the token)
  • Notification Implementation to increase interactivity when loading/error/warning

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

Twitter - @cok_yoga LinkedIn - Sedana Yoga

(back to top)

fe-mocktest-binar's People

Contributors

sedanayoga avatar

Watchers

 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.