Giter Site home page Giter Site logo

mern-booking-app's Introduction

How to Run

Backend

  1. go to folder backend
  2. install packages, run npm i
  3. created .env file based on the example
    1. pdate mongodb password connection
    2. update JWT_SECRET_KEY. we can use https://randomkeygen.com
  4. run npm run dev

Frontend

  1. go to folder frontend
  2. install package, run npm i
  3. created .env based on the example and adjust accordingly
  4. run npm run dev

setup project

backend

  1. create folder called backend
  2. run npm init
  3. run npm i express dotenv cors mongodb mongoose
  4. run npm i nodemon typescript ts-node @types/mongodb @types/cors @types/express

frontend

  1. delete folder frontend if necessary
  2. run npm create vite@latest
  3. input frontend as name project, choose react and Typescript + SWC

mongodb

  1. login to https://cloud.mongodb.com/
  2. create new database
  3. create env for MONGGODB_CONNECTION_STRING
  4. update backend to acccept connection string

tailwind

  1. go to frontend, run npm install -D tailwindcss postcss autoprefixer
  2. run npx tailwindcss init -p

Note

  • why SWC? because it make build faster 2JuONRtcGpl0XGuk
  • [BUG] [Express.js] password validator too strong and doesn't complain if the requirement not satisfy
  • [BUG] [frontend] password can be seen at inspect browser 1718427181792

mern-booking-app's People

Contributors

aysf 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.