Code Monkey home page Code Monkey logo

lavarcbt's Introduction

About the project

Portfolio website for Minecraft Build Team - Lavarc. Uses firebase auth, storage. Have our own chat application, email contact form. You can see too Gallery, semi Shop.

Demo:

https://lavarc.netlify.app/

Used technologies:

  • react
  • react-router
  • custom hooks
  • react-form-hook
  • react-toastify
  • react-moment
  • react-icons
  • firebase
  • emailJs
  • typescript
  • SCSS
  • eslint, prettier.

How to run project:

  • npm run start - Starts project
  • npm run sass-watch - Listens for changes in sass files
  • npm run lint - Checks to see if there are any errors with eslint
  • npm run lint-fix - Checks to see if there are any errors and fix them if autofixable

To run project without errors You need to create configuration folder in components folder and create 2 files in it: emailjs.ts and firebase.ts

Content of emailjs.ts file

You can easily create Your account on https://www.emailjs.com/ then create two email templates like contact template and order template then pass all necessary data into object.

const EmailJsConf = {
  serviceId: '',
  userId: '',
  contactTemplate: '',
  orderTemplate: '',
};

export default EmailJsConf;

Content of firebase.ts file

You can easily create Your account on https://firebase.google.com/ then create your own project and pass all necessary data into object.

import { getAuth } from '@firebase/auth';
import { getFirestore } from '@firebase/firestore';
import { initializeApp } from 'firebase/app';
import { getStorage } from 'firebase/storage';

const firebaseConfig = {
  apiKey: '',
  authDomain: '',
  projectId: '',
  storageBucket: '',
  messagingSenderId: '',
  appId: '',
  measurementId: '',
};

const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const db = getFirestore(app);
const storage = getStorage(app);

export { auth, db, storage };

lavarcbt's People

Contributors

dependabot[bot] avatar fronikuniu avatar

Watchers

 avatar

lavarcbt's Issues

Error with register and login submit button

When i create new account i need click 2 times in submit button. For the first time i getting error "auth/admin-restricted-operation" and for the next click i can normally sign up.

When i try to login i need too click 2 times in submit button. For the first time i getting error "auth/missing-email" and for the next click i can normally log in.

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.