Skip to content

Commit 2b09a14

Browse files
committed
Initial commit
0 parents  commit 2b09a14

File tree

96 files changed

+11850
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+11850
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/docker-existing-docker-compose
3+
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
4+
{
5+
"name": "Existing Docker Compose (Extend)",
6+
7+
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
8+
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
9+
"dockerComposeFile": [
10+
"../docker-compose.yml",
11+
"docker-compose.yml"
12+
],
13+
14+
// The 'service' property is the name of the service for the container that VS Code should
15+
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
16+
"service": "web",
17+
18+
// The optional 'workspaceFolder' property is the path VS Code should open by default when
19+
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
20+
"workspaceFolder": "/workspace",
21+
22+
// Set *default* container specific settings.json values on container create.
23+
"settings": {},
24+
25+
// Add the IDs of extensions you want installed when the container is created.
26+
"extensions": []
27+
28+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
29+
// "forwardPorts": [],
30+
31+
// Uncomment the next line if you want start specific services in your Docker Compose config.
32+
// "runServices": [],
33+
34+
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
35+
// "shutdownAction": "none",
36+
37+
// Uncomment the next line to run commands after the container is created - for example installing curl.
38+
// "postCreateCommand": "apt-get update && apt-get install -y curl",
39+
40+
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
41+
// "remoteUser": "vscode"
42+
}

.devcontainer/docker-compose.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3.9'
2+
services:
3+
# Update this to the name of the service you want to work with in your docker-compose.yml file
4+
web:
5+
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
6+
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
7+
# debugging) to execute as the user. Uncomment the next line if you want the entire
8+
# container to run as this user instead. Note that, on Linux, you may need to
9+
# ensure the UID and GID of the container user you create matches your local user.
10+
# See https://aka.ms/vscode-remote/containers/non-root for details.
11+
#
12+
# user: vscode
13+
14+
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
15+
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
16+
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
17+
# array). The sample below assumes your primary file is in the root of your project.
18+
#
19+
# build:
20+
# context: .
21+
# dockerfile: .devcontainer/Dockerfile
22+
23+
volumes:
24+
# Update this to wherever you want VS Code to mount the folder of your project
25+
- .:/workspace:cached
26+
27+
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
28+
# - /var/run/docker.sock:/var/run/docker.sock
29+
30+
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
31+
# cap_add:
32+
# - SYS_PTRACE
33+
# security_opt:
34+
# - seccomp:unconfined
35+
36+
# Overrides default command so things don't shut down after the process ends.
37+
command: /bin/sh -c "while sleep 1000; do :; done"
38+

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALLOWED_ORIGINS=localhost:3000

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALLOWED_ORIGINS=localhost:3002,localhost:3000

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark any vendored files as having been vendored.
7+
vendor/* linguist-vendored

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore pidfiles, but keep the directory.
17+
/tmp/pids/*
18+
!/tmp/pids/
19+
!/tmp/pids/.keep
20+
21+
# Ignore uploaded files in development.
22+
/storage/*
23+
!/storage/.keep
24+
/tmp/storage/*
25+
!/tmp/storage/
26+
!/tmp/storage/.keep
27+
28+
/public/assets
29+
30+
# Ignore master key for decrypting credentials and more.
31+
/config/master.key

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-3.0.3

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# syntax=docker/dockerfile:1
2+
FROM ruby:3
3+
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
4+
WORKDIR /app
5+
COPY Gemfile /app/Gemfile
6+
COPY Gemfile.lock /app/Gemfile.lock
7+
RUN bundle install
8+
9+
# Add a script to be executed every time the container starts.
10+
COPY entrypoint.sh /usr/bin/
11+
RUN chmod +x /usr/bin/entrypoint.sh
12+
ENTRYPOINT ["entrypoint.sh"]
13+
EXPOSE 3009
14+
15+
# Configure the main process to run when running the image
16+
CMD ["rails", "server", "-p", "3009", "-b", "0.0.0.0"]

Gemfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.0.3'
5+
6+
gem 'bootsnap', require: false
7+
gem 'importmap-rails'
8+
gem 'jbuilder'
9+
gem 'pg', '~> 1.1'
10+
gem 'puma', '~> 5.0'
11+
gem 'rack-cors'
12+
gem 'rails', '~> 7.0.0'
13+
gem 'sprockets-rails'
14+
gem 'stimulus-rails'
15+
gem 'turbo-rails'
16+
17+
group :development, :test do
18+
gem 'dotenv-rails'
19+
gem 'rspec-rails'
20+
gem 'rubocop'
21+
end
22+
23+
group :development do
24+
end
25+
26+
group :test do
27+
gem 'shoulda-matchers', '~> 5.0'
28+
end

0 commit comments

Comments
 (0)