Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

4GeeksAcademy/BomaGeorge-Contact-Delete-this

Repository files navigation

Used by 4Geeks.com and 4Geeks Academy students, this template helps to bootstrap your first multi-page web applications by integrating with React latest version, vercel deployments andVite for bundling.

Getting stated:

📦 Make sure you are using at least node version 20.

  1. Install the node package dependencies by typing:$ npm install

  2. Create a .env file by typing$ cp .env.example .env

  3. Start coding! and the vite dev server with live reload by typing:$ npm run start

Styling

You can update the./index.css or create new.css files and import them into your current css or js files depending on your needs.

Components

Add more files into your./src/components or styles folder as you need them and import them into your current files as needed.

💡Note: There is an example using the Context API insidepages/demo.js;

Pages

Add more files into your./js/pages and import them in./routes.jsx.Each page must match at least one route insideroutes.jsx

Centralized Store with useReducer

This template comes with a centralized & general state that's shared with all pages and compoentes, we call it "the store".

The file./src/store.js has a default structure for the store, we encourage you to change it and adapt it to your data needs (for example, if you are doing aTodo list you will probably have a array of todos here).

The storeProvider for this context is already set on./src/main.jsx. You can access the store from any component using theuseGlobalReducer hook to get thestore anddispatcher. Check/views/demo.js to see a demo. Here is a smaller sample:

importuseGlobalReducerfrom"./src/hooks/useGlobalReducer";constMyComponentSuper=()=>{//here you use the hook to get dispatcher and storeimport{dispatch,store}=useGlobalReducer();return<div>{/* you can use your actions or store inside the html */}</div>}

Publish your website!

  1. Vercel: The FREE recomended hosting provider isvercel.com, you can deploy in 1 minutes by typing the following 2 commands:

Login (you need to have an account):

$ npm i vercel -g&& vercel login

Deploy:

$ vercel --prod

✎ Note: If you don't have an account just go to vercel.com, create a account and come back here.

Vercel example procedure to deploy

Contributors

This template was built as part of the 4Geeks AcademyCoding Bootcamp byAlejandro Sanchez and many other contributors. Find out more about ourFull Stack Developer Course,Data Science Bootcamp andCyberSecurity Bootcamp.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp