Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain #77

Merged
merged 3 commits into from
Jul 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,37 @@

<a href="https://hashnode.com">
<img alt="code style: prettier" src="https://img.shields.io/badge/Hashnode-2962FF?style=for-the-badge&logo=hashnode&logoColor=white">
</a>
</a>

<a href="https://vercel.com/evavic44/spekni/4g6cAgSJ2JQcGxpwQew77Ny9jDdC">
<img src="https://user-images.githubusercontent.com/62628408/178316423-5dc0c0bb-2ebb-4c7f-9635-164a324d4897.svg" width="150px">
</a>
</p>

<a href="https://spekni.vercel.app">
<a href="https://spekni.com">
<img src="https://user-images.githubusercontent.com/62628408/180232616-d2ab3cba-e5f8-4b2d-bfa0-8b2b12059f23.png" alt="Spekni">
</a>

# Tech Stack
- ⚡ NextJS - UI Framework
- 🔒 Authentication - [NextAuth.js](https://nextauth.io) (GitHub and Google)
- 📦 Database and API - [PlanetScale](https://planetscale.io)
- 🖼️ Image Optmization - [Cloudinary](https://cloudinary.com)
- 🎥 Video Embed - [Loom](https://loom.com)
- ☀️ Color Theme: [Next Themes](https://github.com/pacocoursey/next-themes)
- 🎨 TailwindCSS - CSS Library for fast styling
- 🖌️ CSS - Reusable stying and variables
- 🎉 React Confetti - Feel good animations for endorsements

- 🎯 [NextJS](https://nextjs.org) - UI framework
- ☑️ [Vercel](https://vercel.com) - Hosting and deployment
- 🔒 [NextAuth.js](https://nextauth.io): GitHub and Google Authentication
- 📦 [PlanetScale](https://planetscale.io): Database Storage & API
- 💅🏽 [TailwindCSS](https://tailwindcss.com) /CSS - Styling and UI
- 🗃️ [Prisma](https://prism.io): database schema design
- 🎥 [Remotion](https://www.remotion.dev/): Video Embed
- ☀️ [Next Themes](https://github.com/pacocoursey/next-themes): Color Theme
- 🎭 [Cloudinary](https://cloudinary.com) - Cloud media storage
- 🖼️ [Lazyload NPM package](https://lazyload.com): Image optimization

<div align="left">
<h1>How to run locally ✨</h1>
<p>Follow these steps below to run Spekni locally in your machine.
</div>

## Prerequisites

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started
Expand Down Expand Up @@ -79,5 +82,6 @@ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https
Are you contributing to this project, please ensure all pull requests and contributions comply with our <a href="https://github.com/Evavic44/spekni/blob/main/CONTRIBUTING.md">guidelines</a>. Before making any changes, ensure you have raised an issue here, unless it is a minimal change.

## License

This project is protected under <a href="https://github.com/Evavic44/spekni/blob/main/LICENSE">MIT License</a>.
If you like this project, kindly star ⭐ and share this project. It means the world to us.
4 changes: 2 additions & 2 deletions src/components/ProfileLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Layout({ children, profile }) {
content="EKe Victor, Spiff Jekey-Green, Nicholas Ovunda"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spekni.vercel.app/" />
<meta property="og:url" content="https://spekni.com" />
<meta
property="og:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand All @@ -63,7 +63,7 @@ export default function Layout({ children, profile }) {
property="twitter:card"
content="https://res.cloudinary.com/victoreke/image/upload/v1658408623/Spekni/bg/spekni-profile.png"
/>
<meta property="twitter:url" content="https://spekni.vercel.app/" />
<meta property="twitter:url" content="https://spekni.com" />
<meta
property="twitter:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MyDocument extends Document {
content="EKe Victor, Spiff Jekey-Green, Nicholas Ovunda"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spekni.vercel.app/" />
<meta property="og:url" content="https://spekni.com" />
<meta
property="og:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand All @@ -42,7 +42,7 @@ class MyDocument extends Document {
property="twitter:card"
content="https://res.cloudinary.com/victoreke/image/upload/v1658407791/Spekni/bg/spekni-home.png"
/>
<meta property="twitter:url" content="https://spekni.vercel.app/" />
<meta property="twitter:url" content="https://spekni.com" />
<meta
property="twitter:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/pages/api/auth/[...nextauth].js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ export default NextAuth({
secret: process.env.JWT_SIGNING_PRIVATE_KEY,
database: process.env.DATABASE_URL,
adapter: PrismaAdapter(prisma),
callbacks: {
redirect: async (url, baseUrl) => {
return Promise.resolve(url);
},
},
pages: {
signIn: "/login",
newUser: "/account"
newUser: "/account",
},
});
8 changes: 4 additions & 4 deletions src/pages/explore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Explore() {
try {
const fetchedUsers = (await axios(`/api/users`)).data;
const data = fetchedUsers.data;
setUsers(prev => [...prev, ...data]);
setUsers((prev) => [...prev, ...data]);
} catch (err) {
console.log(err);
}
Expand Down Expand Up @@ -53,7 +53,7 @@ export default function Explore() {
content="Victor Eke, Spiff Jekey-Green, Nicholas Ovunda"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spekni.vercel.app/" />
<meta property="og:url" content="https://spekni.com" />
<meta
property="og:title"
content="Explore: Spekni - Find over 500+ developers creating impact in the tech ecosystem"
Expand All @@ -71,7 +71,7 @@ export default function Explore() {
property="twitter:card"
content="https://res.cloudinary.com/victoreke/image/upload/v1658407791/Spekni/bg/spekni-home.png"
/>
<meta property="twitter:url" content="https://spekni.vercel.app/" />
<meta property="twitter:url" content="https://spekni.com" />
<meta
property="twitter:title"
content="Explore: Spekni - Find over 500+ developers creating impact in the tech ecosystem"
Expand Down Expand Up @@ -127,7 +127,7 @@ export default function Explore() {
endorsements={userData.user.endorsements}
skills={userData.user.Skill}
/>
)
);
})}

<p className="font-medium text-lg mt-4">Loading...</p>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function Home() {
content="Victor Eke, Spiff Jekey-Green, Nicholas Ovunda"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spekni.vercel.app/" />
<meta property="og:url" content="https://spekni.com" />
<meta
property="og:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand All @@ -54,7 +54,7 @@ export default function Home() {
property="twitter:card"
content="https://res.cloudinary.com/victoreke/image/upload/v1658407791/Spekni/bg/spekni-home.png"
/>
<meta property="twitter:url" content="https://spekni.vercel.app/" />
<meta property="twitter:url" content="https://spekni.com" />
<meta
property="twitter:title"
content="Spekni - Recognition platform built for developer endorsements"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function Login({ providers }) {
content="EKe Victor, Spiff Jekey-Green, Nicholas Ovunda"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spekni.vercel.app/" />
<meta property="og:url" content="https://spekni.com" />
<meta
property="og:title"
content="Create an account on Spekni using your Github or Google account to start receiving endorsements and recommendations"
Expand All @@ -69,7 +69,7 @@ export default function Login({ providers }) {
property="twitter:card"
content="https://res.cloudinary.com/victoreke/image/upload/v1658407791/Spekni/bg/spekni-home.png"
/>
<meta property="twitter:url" content="https://spekni.vercel.app/" />
<meta property="twitter:url" content="https://spekni.com" />
<meta
property="twitter:title"
content="Create an account on Spekni using your Github or Google account to start receiving endorsements and recommendations"
Expand Down