-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove global
window.$
jQuery definition (#1319)
* BT setup * Add a box partial showing the NP issue * Update all Bundler dependencies (2024-03-24) (#1378) * remove duplicate electron import * remove jquery global definition --------- Co-authored-by: Adam Pallozzi <[email protected]> Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b0334f5
commit c73c9c8
Showing
20 changed files
with
59 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
organization: untitled_application | ||
organization: np_tester | ||
|
||
extends: | ||
- recommended | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,30 @@ | ||
# Bullet Train Application Template | ||
If you're new to Bullet Train, start with the [Bullet Train Developer Documentation](https://bullettrain.co/docs) and the [Getting Started](https://bullettrain.co/docs/getting-started) guide. You should also [join the community Discord server](https://discord.gg/bullettrain)! | ||
|
||
## Building a New Application with Bullet Train | ||
If you're building a new application with Bullet Train, you don't want to "Fork" the template repository on GitHub. Instead, you should: | ||
|
||
1. Clone the template repository: | ||
|
||
``` | ||
git clone [email protected]:bullet-train-co/bullet_train.git your_new_project_name | ||
``` | ||
2. Enter the project directory: | ||
``` | ||
cd your_new_project_name | ||
``` | ||
3. Run the configuration and setup scripts: | ||
``` | ||
bin/configure | ||
bin/setup | ||
``` | ||
4. Boot your application: | ||
``` | ||
bin/dev | ||
``` | ||
5. Visit `http://localhost:3000`. | ||
## Cloud Development with Gitpod | ||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/bullet-train-co/bullet_train) | ||
Clicking this button will set up a new Bullet Train project for development on [Gitpod](https://gitpod.io). | ||
<br> | ||
<br> | ||
<p align="center"> | ||
<strong>Open-source development sponsored by:</strong> | ||
</p> | ||
<p align="center"> | ||
<a href="https://www.clickfunnels.com"><img src="https://images.clickfunnel.com/uploads/digital_asset/file/176632/clickfunnels-dark-logo.svg" width="575" /></a> | ||
</p> | ||
<br> | ||
<br> | ||
## Provisioning a Production Environment | ||
You can use this public repository to provision a new application and then push your private application code there later. | ||
### Render | ||
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/bullet-train-co/bullet_train) | ||
Clicking this button will take you to the first step of a process that, when completed, will provision production-grade infrastructure for your Bullet Train application which will cost about **$30/month**. | ||
When you're done deploying to Render, you need to go into "Dashboard" > "web", copy the server URL, and then go into "Env Groups" > "settings" and paste the URL into the value for `BASE_URL`. | ||
### Heroku | ||
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=http://github.com/bullet-train-co/bullet_train) | ||
Clicking this button will take you to the first step of a process that, when completed, will provision production-grade infrastructure and services for your Bullet Train application which will cost about **$140/month**. | ||
Once that process has completed, be sure to complete the other steps from the [Deploying to Heroku](https://bullettrain.co/docs/heroku) documentation. | ||
## Contribute to Bullet Train | ||
If you're looking contribute to Bullet Train, you should "Fork" this template repository on GitHub, like so: | ||
1. Visit https://github.com/bullet-train-co/bullet_train. | ||
2. Click "Fork" in the top-right corner. | ||
3. Select the account where you want to fork the repository. | ||
4. Click the "Code" button on the new repository and copy the SSH path. | ||
5. Clone your forked repository using the SSH path you copied, like so: | ||
``` | ||
git clone [email protected]:your-account/bullet_train.git | ||
cd bullet_train | ||
``` | ||
6. Run the setup script: | ||
``` | ||
bin/setup | ||
``` | ||
7. Start the application: | ||
``` | ||
bin/dev | ||
``` | ||
> [!NOTE] | ||
> Optional: If you have [ngrok](https://ngrok.com/) installed, uncomment `ngrok: ngrok http 3000` from `Procfile.dev` and run | ||
> `bin/set-ngrok-url` to set `BASE_URL` to a publically accessible domain. | ||
> Run `bin/set-ngrok-url` after restarting `ngrok` to update `BASE_URL` to | ||
> the current public url. | ||
8. Visit http://localhost:3000. | ||
--- | ||
This `README.md` file will be replaced with [`README.example.md`](./README.example.md) after running `bin/configure`. | ||
# NP Tester | ||
|
||
## Getting Started | ||
|
||
1. You must have the following dependencies installed: | ||
|
||
- Ruby 3 | ||
- See [`.ruby-version`](.ruby-version) for the specific version. | ||
- Node 19 | ||
- See [`.nvmrc`](.nvmrc) for the specific version. | ||
- PostgreSQL 14 | ||
- Redis 6.2 | ||
- [Chrome](https://www.google.com/search?q=chrome) (for headless browser tests) | ||
|
||
If you don't have these installed, you can use [rails.new](https://rails.new) to help with the process. | ||
|
||
2. Run the `bin/setup` script. | ||
3. Start the application with `bin/dev`. | ||
4. Visit http://localhost:3000. | ||
|
||
## Information about Bullet Train | ||
If this is your first time working on a Bullet Train application, be sure to review the [Bullet Train Basic Techniques](https://bullettrain.co/docs/getting-started) and the [Bullet Train Developer Documentation](https://bullettrain.co/docs). | ||
|
||
### Render | ||
|
||
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/bullet-train-co/bullet_train) | ||
|
||
Clicking this button will take you to the first step of a process that, when completed, will provision production-grade infrastructure for your Bullet Train application which will cost about **$30/month**. | ||
|
||
When you're done deploying to Render, you need to go into "Dashboard" > "web", copy the server URL, and then go into "Env Groups" > "settings" and paste the URL into the value for `BASE_URL`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.session_store :cookie_store, key: "_untitled_application_session" | ||
Rails.application.config.session_store :cookie_store, key: "_np_tester_session" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters