Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.47 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.47 KB

Dev Challenges

Web Development Resources that help you to become a Web Developer by working with Real-life projects and practices. Create your own challenges with InfoJobs Offers.

Introducing my web app inspired by devchallenges.io with an exciting twist! This app combines the beloved functionality and sleek web design of devchallenges.io with an innovative addition: the ability for users to create their own challenges using the powerful Infojobs API.

Getting Started

  1. Install dependencies:
pnpm install
  1. Create a .env.local file in the root folder and paste your variables:
cp -r .env.example .env

How to setup local environment

Setup local PostgreSQL database

  • Create the database password and paste it to POSTGRES_PASSWORD
docker-compose up -d

Get Github OAuth Client ID and Client Secret

  • Click here to create new Github OAuth app
  • Set the Application name. Example: Dev Challenges development
  • Set the Homepage URL to http://localhost:3000
  • Set the Authorization callback URL to http://localhost:3000/api/auth/callback/github
  • Go to "Client secrets" and generate new client secret
  • Copy the Client ID and Client Secret
  • Go to .env and paste the Client ID and Client Secret

Other env variables

  • INFOJOBS_TOKEN
  • NEXTAUTH_SECRET

Start developing

Now you can run:

pnpm dev