GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codu-code/codu at e33089bf66c3c502b4cb68dba72ccad0df5c879e

BranchesTags
Open more actions menu

Latest commit

 

History

405 Commits
405 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
app/api/auth
app/api/auth
 
 
cdk
cdk
 
 
components
components
 
 
config
config
 
 
curriculum
curriculum
 
 
e2e
e2e
 
 
hooks
hooks
 
 
icons
icons
 
 
markdoc
markdoc
 
 
pages
pages
 
 
prisma
prisma
 
 
public
public
 
 
schema
schema
 
 
server
server
 
 
styles
styles
 
 
types
types
 
 
utils
utils
 
 
.dockerignore
.dockerignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.gitpod.yml
.gitpod.yml
 
 
.nvmrc
.nvmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
EDITOR_SHORTCUTS.MD
EDITOR_SHORTCUTS.MD
 
 
ISSUE_TEMPLATE.md
ISSUE_TEMPLATE.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
docker-compose.yml
docker-compose.yml
 
 
jest.config.js
jest.config.js
 
 
jest.setup.js
jest.setup.js
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.js
next.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
postcss.config.js
postcss.config.js
 
 
sentry.client.config.ts
sentry.client.config.ts
 
 
sentry.edge.config.ts
sentry.edge.config.ts
 
 
sentry.server.config.ts
sentry.server.config.ts
 
 
setup.sh
setup.sh
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Codú

PRs Welcome

Codu Logo

A space for coders

Codú is the ultimate community of web developers to learn, share, and get support for your projects, either big or small. It is the perfect place to sharpen your skills and build your portfolio. In Codú, we're all here to help each other to grow as web developers. Plus, Codú makes it easier to find collaborators for your next big project.


💬 Join the conversation

We have a fantastic community growing on Discord. Click here to join!


🖥️ Installation

  1. Fork the project
  2. Clone with git clone https://github.com/YOUR_USERNAME/codu.git.
  3. Navigate to the project directory cd codu.
  4. Install dependencies with:
npm install
  • If you have any issues installing dependencies, check your node version against that defined in the .nvmrc. If you're using nvm, you can run nvm use before installing dependencies.
  1. Create a .env file and add the following variables. You can copy the contents of .env.example with cat .env.example > .env.
# This default value is if you run our local docker-compose.yml file to create the database.
DATABASE_URL=postgresql://postgres:[email protected]:5432/postgres
# Setup your GitHub ID & Secret on GitHub: https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps
# For development, make sure you set up this with a Homepage URL of http://localhost:3000/ and an Authorization callback URL of http://localhost:3000/api/auth
GITHUB_ID=YOUR_GITHUB_APP_ID
GITHUB_SECRET=YOUR_GITHUB_APP_SECRET
NEXTAUTH_URL=http://localhost:3000/api/auth

For a more detailed how to guide on setting them up go to the Environment Variables section.

  1. Make sure your database is running and setup the tables in the database with Prisma by running:
npx prisma db push
  1. Seed the database with some mock data by running:
npx prisma db seed
  1. Finally, run the development server:
npm run dev

After completion of above commands, now -

Navigate to http://localhost:3000 in your browser to see the result.

You can start your journey by modifying pages/index.tsx. With Auto-update feature, pages updates as you edit the file.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn more about API routes here.

Environment Variables

DATABASE_URL

The DATABASE_URL is a connection string to a PostgreSQL database (version 15.0).

By default, we point to a database running locally with Docker from our docker-compose.yml file.

To run this file, make sure you have Docker installed and that Docker is running.

Run the command docker compose up.

Alternatively, if you have PostgreSQL running locally then you can use your local connection string or grab one from a free service like Supabase.

GITHUB_ID and GITHUB_SECRET

Currently, we only allow authentication via GitHub. To enable this you need to have a GITHUB_ID and GITHUB_SECRET value.

Setup your GitHub ID & Secret on GitHub:

  • https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps

Shortcut - Click here to setup New OAuth App.

For development, make sure you setup this with a Homepage URL of http://localhost:3000/ and Authorization callback URL of http://localhost:3000/api/auth.

Screenshot 2022-10-25 at 08 22 03

After you click the "Register application" button you should see the GITHUB_ID and be able to generate a new client secret. You can see this in the screenshot below. 👇 Screenshot 2022-10-25 at 08 23 22 After generating the secret, make sure you copy this value to your .env file as this value can not be seen again once you refresh the page. 👇 Screenshot 2022-10-25 at 08 26 04

NEXTAUTH_URL

You shouldn't need to change the default value here. This is a variable used by Next Auth as the authentication URL to your site.

NEXTAUTH_URL=http://localhost:3000/api/auth

For more information, you can read the documentation here.

👨‍💻 Contribution Guidelines

  • Contributions are greatly appreciated. Contributions make the open-source community an amazing place to learn, inspire, and create.

  • Check out our contribution guidelines for contributiong to our repo. It includes

    • How to Contribute
    • How to create a Pull Request
    • Run Tests
    • Also, Style Guide for Commit Messages

📙 Prerequisite Skills to Contribute

  • Git

📃 Documentation Contributions

  • Markdown

💾 Code Contributions

  • React
  • Next.js
  • PostgreSQL
  • Tailwind

📚 Additional Resources

To learn more about Next.js, take a look at the following resources:

  • Next.js Documentation - learn about Next.js features and API.
  • Learn Next.js - an interactive Next.js tutorial.

Editor Doc

To learn about the editor shortcuts and hotkeys you can check out this document

  • Markdoc Editor Hotkeys and Shortcus

💥 Issues

You are welcome to open issues to discuss ideas about improving our Codú. Enhancements are encouraged and appreciated.

About

Codú's open-source codebase. A space for coders. Visit our community!

codu.co/

Topics

careerscodecoducommunitycomputer-sciencecsseducationhacktoberfesthacktoberfest2024javascriptlearn-to-codenextjsnodejsprismareactreactjssqltailwindcssweb-development

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

155 stars

Watchers

7 watching

Forks

167 forks
Report repository

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.