Skip to content

Commit 4c3dd5d

Browse files
Updated README.md, added contributor's guide, code of conduct, and dev container. (#35)
* added contributors and code of conduct docs. * added dev container. * made new readme.
1 parent be0b2c4 commit 4c3dd5d

File tree

5 files changed

+326
-5
lines changed

5 files changed

+326
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Ubuntu version: bionic, focal
4+
ARG VARIANT="focal"
5+
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
6+
7+
8+
# [Optional] Uncomment this section to install additional OS packages.
9+
RUN export DEBIAN_FRONTEND=noninteractive \
10+
&& sudo apt-get update \
11+
&& sudo apt-get -y install golang
12+
13+
RUN go get -v golang.org/x/tools/gopls
14+
RUN go get -u github.com/lukehoban/go-outline
15+
RUN go get -u github.com/uudashr/gopkgs/cmd/gopkgs
16+
RUN go get github.com/go-delve/delve/cmd/dlv

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.166.1/containers/ubuntu
3+
{
4+
"name": "allbase - Ubuntu",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic
8+
"args": { "VARIANT": "focal" }
9+
},
10+
11+
// Set *default* container specific settings.json values on container create.
12+
"settings": {
13+
"terminal.integrated.shell.linux": "/bin/bash"
14+
},
15+
16+
// Add the IDs of extensions you want installed when the container is created.
17+
"extensions": ["golang.go", "ms-vsliveshare.vsliveshare-pack","redhat.vscode-yaml","yzhang.markdown-all-in-one","premparihar.gotestexplorer","github.vscode-pull-request-github","streetsidesoftware.code-spell-checker","eamodio.gitlens"]
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "uname -a",
24+
25+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
26+
// "remoteUser": "vscode"
27+
}

CODE_OF_CONDUCT.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, religion, or sexual identity
11+
and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the
27+
overall community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or
32+
advances of any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email
36+
address, without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at
64+
[INSERT CONTACT METHOD].
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series
87+
of actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or
94+
permanent ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within
114+
the community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant version 2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
119+
120+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
121+
enforcement ladder](https://github.com/mozilla/diversity).
122+
123+
For answers to common questions about this code of conduct, see the [FAQ](https://www.contributor-covenant.org/faq).
124+
125+
[Translations are also available](https://www.contributor-covenant.org/translations).

CONTRIBUTING.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Introduction
2+
3+
Yo, what up! if you're reading this then I'm super psyched because that means that you're thinking about contributing to Allbase! Thanks so much for your time and consideration. It's rad people like you that make Allbase such a cool computational synthetic biology tool.
4+
5+
I wrote this contributor's guide to help newcomers feel welcome. Getting started with a new project can be complicated and I wanted to make it as easy as possible for you to contribute and as easy as possible for me to help.
6+
7+
Currently any sincere pull request is a good request.
8+
Allbase is still in pre-release so there are so many way to contribute!
9+
Here's a list of ideas but feel free to suggest anything I may have forgotten to include.
10+
11+
* Feature requests - especially cool new algorithms with citations.
12+
* Devops features. Github action bots, linters, deployment, etc.
13+
* Unit and integration tests.
14+
* Writing, editing, and translating tutorials, documentation, or blog posts.
15+
* Auditing for accessibility.
16+
* Bug reports.
17+
* Bug triaging.
18+
* Community management.
19+
* Art! Dreams! Your excellence!
20+
* Code that can be pulled into Allbase itself.
21+
22+
# Contributor guidelines
23+
### Excellence, and the contributor's code of conduct
24+
25+
First up, most importantly we have a contributor's code of conduct. For some reason the internet is a dehumanizing experience and it's easy to forget that aside from the bots we're all humans on this thing. Approach each other with kindness. Please read our [contributor's code of conduct](CODE_OF_CONDUCT.md) and when in doubt just remember our one true rule as once spoken by the ever so wise duo of Bill and Ted.
26+
27+
`Bill: Be excellent, ... to each other, ...`
28+
29+
`Ted: and party on, dudes! [sic]`
30+
31+
![Abraham Licoln saying, "Be Excellent to each other and party on dudes!". [sic]](https://media.giphy.com/media/ef0zYcF7AKu4b0Sns6/giphy-downsized-large.gif)
32+
33+
### Do-ocracy
34+
35+
Allbase runs on do-ocracy. Do-ocracy is a simple concept. If you don't like something you don't need permission to fix it, you can just go ahead and fix it! If you actually want to merge your fix, or contribute in someway that benefits everybody, it'd really, really, really help if you got some light consensus from the rest of the Allbase development community but hey, if you really need to do something then you just gotta do it! Just don't expect me to merge it if it doesn't meet our technical criteria or isn't quite right for Allbase.
36+
37+
### Technical requirements
38+
39+
Part of what makes Allbase so special is that we have standards. DNA is already spaghetti code on its own and we just don't need to add to that.
40+
41+
All successfully merged pull requests must meet the following criteria:
42+
43+
* All current tests must pass.
44+
45+
* At least one new test must be written to prove that the merged feature works correctly.
46+
47+
* At least one new [example test](https://blog.golang.org/examples) must be written to demonstrate the merged feature in our docs.
48+
49+
* Build tests must pass for all currently supported systems and package managers. Linux, Mac OSX, Windows, etc.
50+
51+
* Code must be clean, readable, and commented. How you do that is up to you!
52+
53+
Don't worry if you submit a pull request and all the tests break and the code is not readable. We won't merge it just yet and then you can get some feedback about what needs to be changed before we do!
54+
55+
### Be welcoming
56+
57+
As one final guideline please be welcoming to newcomers and encourage new contributors from all walks of life. I want Allbase to be for everyone and that includes you and people who don't look, sound, or act like you!
58+
59+
# Your first contribution
60+
61+
Unsure where to begin contributing to Allbase? You can start by looking through these beginner and help-wanted issues:
62+
63+
[Beginner issues](https://github.com/TimothyStiles/allbase/issues?q=is%3Aissue+is%3Aopen+label%3A%22beginner%22+) - issues which should only require a few lines of code, and a test or two.
64+
65+
[Good first issues](https://github.com/TimothyStiles/allbase/contribute) - issues which are good for first time contributors.
66+
67+
[Help wanted issues](https://github.com/TimothyStiles/allbase/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+) - issues which should be a bit more involved than beginner issues.
68+
69+
[Feature requests](https://github.com/TimothyStiles/allbase/labels/enhancement) - before requesting a new feature search through previous feature requests to see if it's already been requested. If not then feel free to submit a request and tag it with the enhancement tag!
70+
71+
### Working on your first Pull Request?
72+
73+
You can learn how from this *free* series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
74+
75+
You can also check out [these](http://makeapullrequest.com/) [tutorials](http://www.firsttimersonly.com/).
76+
77+
At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first :smile_cat:
78+
79+
# Getting started
80+
81+
For something that is bigger than a one or two line fix:
82+
83+
1. Create your own fork of the code.
84+
2. Make a branch in your fork
85+
3. Do the changes in your fork's branch.
86+
4. Send a pull request.
87+
88+
## Virtual Environments and Development Containers
89+
90+
In order to simplify the development experience, and environment setup, the allbase Github repository comes packaged to support *Github CodeSpaces* and [*VSCode Development Containers*](https://code.visualstudio.com/docs/remote/containers#_getting-started). *Github CodeSpaces* will give you ability to spin up a Github hosted instance of Ubuntu that would allow you run, test, develop allbase from the browser. *VSCode Development Containers* in turn will allow your installation of VSCode to spin up a docker instance of Ubuntu on your computer and automatically mount your code onto it so that you continue developing on this docker instance that has all the required development environment setup.
91+
92+
## Recommended Plugins
93+
94+
Whether you're a beginner with Go or you're an experienced developer, You should see the suggestions popup automatically when you goto the *Plugins* tab in VSCode. Using these plugins can help accelerate the development experience and also allow you to work more collaboratively with other allbase developers.
95+
96+
# How to report a bug
97+
98+
### Security disclosures
99+
100+
If you find a security vulnerability, do NOT open an issue. I've yet to set up a security email for this so please in the interim DM me on twitter for my email [@timothystiles](https://twitter.com/TimothyStiles).
101+
102+
In order to determine whether you are dealing with a security issue, ask yourself these two questions:
103+
104+
* Can I access something that's not mine, or something I shouldn't have access to?
105+
* Can I disable something for other people?
106+
107+
If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just DM me [@timothystiles](https://twitter.com/TimothyStiles) for my personal email until I can set up a security related email.
108+
109+
### Non-security related bugs
110+
111+
For non-security bug reports please [submit it using this template!](https://github.com/TimothyStiles/allbase/issues/new?assignees=&labels=&template=bug_report.md&title=)
112+
113+
# How to suggest a feature or enhancement
114+
115+
If you want to suggest a feature it's as easy as filling out this [issue template](https://github.com/TimothyStiles/allbase/issues/new?assignees=&labels=&template=feature_request.md&title=), but before you do please [check to see if it's already been suggested!](https://github.com/TimothyStiles/allbase/labels/enhancement)
116+
117+
# How add a recommended VSCode Plugin
118+
119+
Allbase comes with a set of recommended plugins for VSCode. If you have suggestions that will simplify life for the allbase dev community, consider doing a pull-request after modifying `.vscode/extensions.json`.
120+
121+
# In closing
122+
123+
Thanks, for reading and I'm super psyched to see what you'll do with Allbase!

README.md

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
1-
# allbase
1+
# Allbase
22

3-
## All your basepair are belong to us
3+
## Allbase is a database for engineering organisms
44

5-
We're building a modern solution to the biotech data access problem. Too many siloed databases using terrible dataformats that can't crossref eachother. Allbase is still in hot development but as it stands now the plan is to have a single service that can search and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot. All sequences get hashes so they have a unique identifier. Allbase should in the end be able to spit out JSON for every sequence it has and every pathway it can make. Keoni should write down how somewhere but search is going to be dummy fast and easy to use through an API.
6-
## Specification
5+
* **Comprehensive:** Allbase is a single service that can search, store, and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot
6+
7+
* **Modern:** Allbase serves JSON and is written in Go. Allbase parses legacy file formats so you don't have to.
8+
9+
* **Stable (soon):** Allbase will be well tested and designed to be used in industrial, academic, and hobbyist settings
10+
11+
## Install
12+
13+
Allbase is still in hot development and not production ready. We currently only ships a pre-release dev branch for contributors. Join us!
14+
`git clone https://github.com/TimothyStiles/allbase && cd allbase && go test -v ./...`
15+
16+
## Community
17+
18+
* **[Discord](https://discord.gg/Hc8Ncwt):** Chat about Allbase and join us for game nights on our discord server!
19+
20+
## Contributing
21+
22+
* **[Code of conduct](CODE_OF_CONDUCT.md):** Please read the full text so you can understand what we're all about and remember to be excellent to each other!
23+
24+
* **[Contributor's guide](CONTRIBUTING.md):** Please read through it before you start hacking away and pushing contributions to this fine codebase.
25+
26+
## Sponsor
27+
28+
* **[Sponsor](https://github.com/sponsors/TimothyStiles):** 🤘 Thanks for your support 🤘
29+
30+
## License
31+
32+
* [MIT](LICENSE)
33+
34+
* Copyright (c) 2022 Timothy Stiles, Keoni Gandall
35+
<!-- We're building a modern solution to the biotech data access problem. Too many siloed databases using terrible dataformats that can't crossref eachother. Allbase is still in hot development but as it stands now the plan is to have a single service that can search and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot. All sequences get hashes so they have a unique identifier. Allbase should in the end be able to spit out JSON for every sequence it has and every pathway it can make. Keoni should write down how somewhere but search is going to be dummy fast and easy to use through an API. -->
36+
<!-- ## Specification
737
When completed allbase will have:
838
939
* [x] Functions that pull data from Genbank, Rhea, CHEMBL, and Uniprot.
@@ -29,4 +59,4 @@ When completed allbase will have:
2959
* [ ] Alignment (will be implemented in Poly).
3060
* [ ] BWA
3161
* [ ] minimap2
32-
* [ ] Insert user provided sequences.
62+
* [ ] Insert user provided sequences. -->

0 commit comments

Comments
 (0)