Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sohara/Coder

Repository files navigation

Getting Started

Install the dependencies

Run npm install

Environment variables

This app requires several environment variables for operation. You can copy .env.example to .env and replace the placeholders. DATABASE_URL doesn't need to change unless you want to change the location of the SQLite DB.

AUTH_SECRET

Run npx auth secret to generate a new auth secret, then add it the .env file.

AUTH_GITHUB_ID and AUTH_GITHUB_SECRET

To enable oauth authentication via Github you will need to register an app. Documentation can be found here: https://authjs.dev/guides/configuring-github#registering-your-app

Migrate the database

After the environment variables are updated you can initialize the dev database:

npm exec prisma migrate dev

Docker

You will need Docker running on your system in order to execute user generated code in an isolated environment.

Pull the necessary Docker images:

docker pull node:20
docker pull python:3.9

Running the Application

Simply run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Tests

To run the tests:

npm run test

About

Code editor project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published