Comments (8)
@JudahGabriel I have been working on that and also Docker support. https://github.com/kdcllc/Chavah/tree/docker-dotnetsdk2.1. I was going to ask if we can migrate some of the RavenDb data into seeding for the Docker container for testing purposes.
from chavah.
@JudahGabriel, I was able to programmaticly to import the data into the Docker container for Chavah.
if (host.IsDevelopment() && !string.IsNullOrEmpty(settings.FileName))
{
var importFilePath = Path.Combine(host.ContentRootPath, settings.FileName);
var operation = new GetDatabaseNamesOperation(0, 1000); // 1000 is safe enough for me.
var databaseNames = docStore.Maintenance.Server.Send(operation);
if (databaseNames.Any(_ => _ == docStore.Database)) return services; // database already exists!
docStore.Maintenance.Server.Send(
new CreateDatabaseOperation(new DatabaseRecord(settings.DatabaseName)));
var importOperation = docStore
.Smuggler
.ImportAsync(
new DatabaseSmugglerImportOptions
{
OperateOnTypes = DatabaseItemType.Documents
},
importFilePath,
new CancellationToken()).ConfigureAwait(false).GetAwaiter().GetResult();
importOperation.WaitForCompletionAsync().Wait();
}
from chavah.
As of this morning, we're now deployed live with .NET Core 2.1.
from chavah.
That sounds great. Let me know if you need anything from me to make that happen.
from chavah.
@JudahGabriel I need help with seeding data for RavenDB :)
from chavah.
Ah. I've attached basic, simple seed data export for Raven: RavenSeedData.zip. It's a zip file that contains a .ravendump file, which you can import.
You can import it via the Studio (Settings -> Import Data) or via code (docStore.Smuggler.ImportAsync(...)).
Is that what you're looking for?
from chavah.
@kdcllc I saw your email about some uncertainty about this seed data. Did you figure it out?
Your steps here would be:
- Unzip RavenSeedData.zip - it contains a single .ravendump file
- Import the .ravendump file, either via the Studio (Settings -> Import Data) or code (docStore.Smuggler.ImportAsync(...)).
- The database now contains some basic data, several songs, etc.
If you're wanting a .Seed() function that fills up the database with some basic data, you could just have the .Seed method call docStore.Smuggler.ImportAsync(...), passing in the .ravendump file.
from chavah.
Alternately, if you're just looking for code to create the basic data, we can do that too. Let me know.
from chavah.
Related Issues (20)
- Songs lists should utilize local caching for faster startup time
- Site map for Google searches HOT 1
- Clicking one of the upcoming songs in NowPlaying plays only the next song
- User notifications HOT 1
- Signing out should hide My Likes
- Show login exceptions to the user HOT 1
- Add HealthChecks to enable notifications
- Non-blocking loading for better perceived performance
- Investigate utilizing counters for Song.TotalPlays and Song.CommunityRank
- Migrate to BunnyCDN HOT 1
- Utilize lazy image loading
- Storing Application Secrets in Azure Vault HOT 1
- Add new top ranking: "best of Chavah"
- Clicking on album name should play song by album ID
- Unlike (or un-dislike) a song HOT 1
- Email notifications for comments on threads I've already commented on
- Admins should be able to edit the songs on an album
- Offline support HOT 2
- Admin UI for pushing new notifications
- Store album year to enable fun stats and more machine learning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chavah.