Được TopGit lập chỉ mục từ metadata GitHub: exercism/website có 544 sao, viết chủ yếu bằng Ruby. The codebase for Exercism's website.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Please note: This repo is an internal repo. That means the source code is public, but we do not accept Pull Requests, we do not support the app being run locally, and we do not encourage people to fork or reuse this repository.
Exercism
This is the website component of Exercism.
It is Ruby on Rails app, backed by various other services.
Setup
These are instructions to get things working locally.
While you are welcome to try and follow these instructions and set up this repo on your local machine, we provide no guarantee of things working on your specific local setup.
Prerequistes
You need the following installed:
Ruby 3.3.0 (For other Ruby versions, change the version in the Gemfile and the .ruby-version files)
MySQL
MongoDB
Redis
AnyCable-Go
Docker
Mac-specific
The main dependencies can be installed via homebrew
As we recommend using WSL, see the Unix-specific instructions listed above.
For information on setting up WSL, check the installation instructions.
Configure the database
Running these commands inside a mysql console will get a working database setup:
CREATE USER 'exercism'@'localhost' IDENTIFIED BY 'exercism';
CREATE DATABASE exercism_development;
ALTER DATABASE exercism_development CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON exercism_development.* TO 'exercism'@'localhost';
CREATE DATABASE `exercism_test`;
ALTER DATABASE `exercism_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON `exercism_test`.* TO 'exercism'@'localhost';
Running local AWS
To run the app you must have a local version of AWS running.
We use localstack and opensearch, and run them via Docker.
Double check versions in .dockerimages.json.
docker run -dp 3042:8080 -p 3040:4566 -p 3041:4566 localstack/localstack:2.3.2
docker run -dp 9200:9200 -e "discovery.type=single-node" opensearchproject/opensearch:2.11.0
Run the setup script
The following scripts configure exercism to work with your setup.
Rubocop is enforced on Pull Requests. To run it locally:
bundle exec rubocop --except Metrics
To autoupdate based on it's suggestions, add the -a flag:
bundle exec rubocop --except Metrics -a
To check the complexity of your code and ensure you're not
adding things that are more complex to the codebase, run without the --except flag:
bundle exec rubocop -a
Testing
The tests can be run using:
bundle exec rails test
Running Jest tests
Run tests:
yarn test [path/to/file]
Omit path to run all tests
Update snapshots:
yarn test [path/to/file] -- -u
Omit path to update all snapshots
Git Repos
If you need to create a new Git repo for use in the tests, use the following:
mkdir /Users/iHiD/Code/exercism/website/test/repos/new-repo
cd /Users/iHiD/Code/exercism/website/test/repos/new-repo
git init --bare
cd ~
git clone file:///Users/iHiD/Code/exercism/website/test/repos/new-repo exercism-new-git-repo
cd exercism-new-git-repo
echo "{}" > config.json
git add config.json
git commit -m "First commit"
git push origin head
Solargraph
Solargraph allows for code suggestions to appear in your editor.
If you'd like to use solargraph, the gem is in the file.
You need to run and set solargraph.useBundler to true in your config. I have this working well with coc-solargraph. This article was helpful for setting it up.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/exercism/website là nguồn chính thức.
exercism/website có bao nhiêu sao?
exercism/website có 544 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/exercism/website. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
exercism/website có phải mã nguồn mở không?
Có — exercism/website phát hành theo license AGPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/exercism/website.
exercism/website còn đang phát triển không?
Commit gần nhất trên exercism/website là 9 ngày trước (theo timestamp GitHub). Repo có 165 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
exercism/website là gì?
exercism/website (exercism/website) là dự án Ruby trên GitHub. Theo mô tả gốc: The codebase for Exercism's website.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc website có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về website.